Is Double Clicking On Viewport Supported?
-
Hey!
Basically being able to run something when an entry in a viewport is double clicked?
Thanks!
-
@Casmat This is probably the job for a broadcaster with
attachToComponentMouseEvents
-
@ustk having a bit of trouble with it:
HiseSnippet 929.3ocsV87aaTDEdVmrn5EPhh3FWFsmbjRsrglBpUHbiiSkEMIV3PDRHT03Ye16nL6LqlY1DLn7+FG4OGNyE3MqW6cSqaUkE0Gr76Geu4aey26sdhQyAqUaHAsubYNPB9jvoKUtzgoLghL9DRvWFdrQyR3LqCLzwY4RHCbLmPqHGuLmYsPBIHXuW3ADzdeR4m+96OlIYJNT6hPtRK3vKEYBWs2IC9AgTdJKAtTj0H6GOXLWqFpk5Bjb6E1ijy3WyV.my7o0JjD7QiRDNsYJRFvRB1+Xcxxoo5aUqx+JgULSBdi9joXgV49TsLwyXuWxvTgLYx5lfkfUYRcKYuUsjuH7LQhXi+5VymUFfVinY+Hn08o2d2id8aRudMn2VnTPCJs+JJ8vvobiH2UGwymONbrBujlyv1dSprJWRqiZENTiYnbcyXWCmZPiMH57jd8NjhecvyhhvVu0QugYnWIfay0FWe52QWCdA3Fpyx0JznS7lLh8H8XlwahZjZgPAc4F.aDMzRcnQ+QT6XQRL8oz3W.N5XGjEeHMlWdqG+T5i5eHlAyrvhF+B5u5P8IcCSV.w+Zzc9SswI1k4bLd5k5MT7LcgEFcC9KamMogU34RIcHSJmgBKqujWj6U0LY7aTxjjWJPNqPV2rBMH87BE2ityA9mJrSY0RnatQfsn5Bgctq779bsIiIE+Njz4.7vt6fnn0EfpUmqcvEUUJ5tH5qGZ97sFye8XzRIRxsE1OeYdW.6nJxlAlCoks1MIhht6qjCe6J4lCZ7UpkFIpUiUB2E4f5sM9QpjXdUeEqvTckZ9OuRyCIq6mDQhWzuo8RJINRvfV9UH+z3SXN15RgUEOobv3D9GhfSfavsQqFmZGdBXu1oyKysR1fteuO3eayhq+bwfk0FyFbqHwk5ozeg1ofXQpya8OnEpJ8pJ7LaIPQj0uPAavtnTQjKkot1RliDeJJSp2Kdz.xatN.WDoSJjL282N4WIWE302V6G6UVgaYyU1+usx58khOLbhvwS2NGasENhWleH3X0h9OMbz74.2USv8CO8m+vrUm7i5BmPs3LlyHP4S34EYSwsdb.OckBj1053J6ddaeGXJnRJM9W7SUv9d6fpf8WGjjw3F8q3qFj7uJ4AkdPNoJeKZ6vy71z5Imvdc6Qxv2p8JN2+3+HbJc6X9pc.yWuCXd7Nf4nc.yS1ALeyNf4aemX7+ghmW3zYqFGPGSFUtEKHXjhgJqRUH4+.bOox5E
in the snippet, theres a viewport with three entries and a broadcaster applied to the viewport. I'm having trouble with the
callbackLevel
part of theaddListener
function to only present the value of the viewport when the a viewport entry is double clicked. Right now it prints the value whenever hovered or clicked on.Thanks!
-
@Casmat you had forgotten the "component" and "event" in the function
And also to set a condition like:if (event.doubleClick)
HiseSnippet 953.3ocsV01iiSCD1o6FDM.RbH9FewJeJUpWUKbufNDhda2tmp31cqnKqPBAmbcbarpicjsytTP6+M9Iw+.XbRZR165c5TEW+PUmWdl4wimYbmqUTlwnzHutWsMig79T+Eak1jIIDtDM6Tj2W4ehVQhoDikowyRyDrTlkX4JI5jsYDigEi77N5EN.dcOFU74e9gSHBhjxZTgPWq3T1K4obai14i+QtPbFIlcEOsk2OZ7LpRNQIT4.4NxeHJiP2PVytf3bqiOx6ilFysJ8BfLLCx63STwaWjntUV5+0bCeof4DFgV.ApT8YJQriwNsnIIbQ77cEACBhx7lRxQkkjuz+bdLuVeSo4yKLfaPztd3049z6n6QuQso2vVzaOTxqEkNtjROveAUyyrMVb74S7mIgKoUDnr2lJk9h576c7mn.Oj1AojMryzfPMhnmLbXeL7UuuKH.J8FK9FhFeMmcalRaGg+d7NvqY1IpzLkDDhBq8HzgzgYIsMpox0bIa.UyfBQqdoHbveEzMjGGheFN7ELKdlkkF1GGRKt0CeF9gi5CdPzqMfvuB5qRpyoaHhbV3uEbmKqsx3.h0RnIWopo34pbCa5MvuLQ0tAQ34BAdBQHVBMVFWHuLy0USD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