scroll event for script panel mouse callback
-
@ulrik
from juce documentation -
@ulrik I thought it wouldn't have been so hard to implement!
It appears to be a whole can of worm with a lot of dependencies to change, unless I miss the obvious...It would have been easy if MouseDetails was part of event but it is a side attribute set, so the whole messaging has to take it into consideration.
-
@ustk Oh, I see, maybe to much to do to achieve a small change.
-
+1 if possible
-
@aaronventure Is it not possible with a broadcaster?
-
@d-healey Is it?
Setting up a mouse broadcaster requires args "component" and "event", same as the function, and tracing the event object at "All Callbacks" level results in:
"clicked": false, "doubleClick": false, "rightClick": false, "mouseUp": false, "mouseDownX": 17, "mouseDownY": 50, "x": 17, "y": 50, "shiftDown": false, "cmdDown": false, "altDown": false, "ctrlDown": false, "hover": false, "insideDrag": 0, "drag": false, "isDragOnly": false, "dragX": 0, "dragY": 0
No scroll that I can see.
-
@aaronventure I was thinking attach to component property and use the
viewportPositionY
- I haven't tested this. -
@d-healey said in scroll event for script panel mouse callback:
viewportPositionY
There's no mention of
viewportPositionY
in either the docs or the source code (GitHub search). Can you explain further?Attempting
bc.attachToComponentProperties(ref, "viewportPositionY", "-");
returnsIllegal property id: viewportPositionY
. -
-
@d-healey Huh, thanks. So I'd put a component into the viewport, and scroll it?
I still don't see how I could get access to mouse scroll values, which I'd use for other stuff than just scrolling a component.
-
@aaronventure Ignore me, I completely misread the topic on my phone and thought this was about viewports specifically.
-
Yes that‘s a sensible request and I vaguely remember working on this at some point.
-
yay! This is perfect timing for a viewport that I'm recreating with panels.
-
@Christoph-Hart hey is there an update on this?
This is the missing piece to attach a broadcaster to a EQ Floating Tile and get the Q values changes via the scroll. Also this allows for some unique input methods zoom, knobs ...
Please consider taking a quick look at this.
-
@Christoph-Hart friendly bump while HISE is seeing a lot of good commits :)
-
@Christoph-Hart said in scroll event for script panel mouse callback:
Yes that‘s a sensible request and I vaguely remember working on this at some point.
Bump
I found this excellent snippet on the forum from Christoph (can't find the original post now) that allows you to control EQ bands on the draggable filter panel and have it update knobs on the UI.
However I noticed a bug which I think is related to this thread - when you update the Q value by hold shift + click and drag the frequency and gain bands update correctly, however if you adjust the Q using the scroll wheel they don't update.
Basically the Band Selected doesn't fire when using the scroll wheel over a band.
HiseSnippet 2315.3ocuY07aabbEeokWCSl3TmhfhdpX.AJJUBqBojchaMbM0GjoB1xhTT0t.BBtC2cVxoZ4NT6NqnYBDZO1S8ZQt4aEMmJPOka9P.5e.8VOzK8efl+BbeuY1OlkjRNUHMBFvZey7dyu2u2GyGpanvgEEIBsJU9vYSXVkda69yBji1dDkGXs6NVktoc6SOjEIs1Z1DZTDy0pToU9DbzRkutk5m+yC2h5SCbX4hrrdpf6vdLeLWlKsaqGw886PcYGxGaL66zZWGQv1BeQLfjUraXMg5bBcH6ITbZWy1pzMZ6xkhv9RpjEYU55aIbm0ejXZfd9OkGwG3yvOZZ0GLjVbGguKhXTp01i39tcS83HKvJcy8+Uz9+6YuG2kmIOmGtsZ.RtFl7QoqUDdqT.dMMgWCC3sDHUx.RWWCo20tuSHehLeDDOuk8tARVnGEncSnnmq00lcK6sEvLBjqMldBqSH7QlF0taiF0Iaznwp2uRk.fji.BmQZ26YToyHVXkOqR4Je3GRNbDOhLHTPccnQftjoP7iDHjbuYD4HFIxm6xBiHSGwBHyDwDGetyIDQ.gByBsDXkAz.WhTPhm3BzCpGOj.A7.lijKBp.+ZjjbFEDFGFBHdKPgDjPd.ocvPd.aMmPFn8V4fo1mUgPpxcq9yIUWTwp0wQogCifwOpJ6LXXjOqVmT8LpeLq5wpYHo5YbbkyQx3Bc5onYIhyfuQGOYAISng.8IQN.8xbWDszIAhAQjHA7MUhBmQhjzYDd.IZVfSNq4FRGhRQKOgFv7M3D1ocSWi+23jEUbNNYRZBExIYNxalfdFiDvXpPJKfB40JbeZLKlk4rTfxTbdjl9FhxCEwCGQPSTi6k63TxHf67Y0Ibod1QLLiQQFInJgYiHdhPxPnnrNwKjAqYfyLEy2i.qp.ZBsZkEc70hXx1Jn1CQYMYXLKwY9jP5.0REx7XPHEJCjBkf18LhBIVLjeZ6dM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XIcQ8Arrrgw6nFdYJVKHd7fhAZbhvE2JdaP6K91flWV0QebBiIJfhGtb+IrfK5JrVImAA9se0t6PkT7JjIxf4MgEJ4HDJsC6L3935KTV1dGVzIRwD.oYGbAtQoL4Fv5qP1wWPk7fgGxAnxg6V98rME0z5EFW2u0r7OtYqD.nWsef8Nvg7GhG9tC2GhqcwK3XMXX588Keiz2LfKYiyk95W+5eeQoqmL4MPwJusTOa0Mdx3jcUW8Y9lS3TTIpvfMTe0Ah6hoOSDdh5pufbOpeDqx4VS4txQYdSqeWK35pvQHx8ufVVFr16nYs2Ig05qtPrhu991yerRSJaCCJqUPKniDCuTe9bGa9DK2o0XZtx+g+QKnFZRe9mxLeElnXOONLKaaxu7SA8cg6T0UcPHQtol7mZMImrv20nHYYk2AvEo62JI1DQOisaPW37MLI9NCR1KjEAr0h4RKgUpjxJ8LXiWNbN1Hy2e4m+4e4CM8cKRqKvy.F3aQOaE6dE7n29B8naYabjeCmZxYKKDiEeN7APEPg.75upfSt97AXEOXDfc25hBvvOZO3F1J.Mu6Ys3KLcaa016TYwG7BUOY.bALekI7kjBfEdlI6+s1qf8MEhuqcWNrEwxw30VBFgti++.iIuc3sr0OFPN.utcme82AOT36k1WGRDOi09zj32bo+l33Iwi0MiwsmfbBKK73DMRXJxe+TRKTPyzruu7u0WIX8TAe0+5e9PTvFEeF3.26jK31JUtahfW8Eew6qD7Qoqxe4q+JkfONQvuwy6GpDbu4M5Oadi1LEpu7eeuezqTRxvp8e8OpmSJXs9s+4uVYllKf1lEfamNGpekHcrZkuwwplWdpxAhXbay8nPr.KeA1WetaHSANytuJHbMb2b82MvuQH0moBJ1kf8BecxfMwuKkLXyzA+NYMFScBEO2Qe5GLI7lJIfeGndn9x16geSZZoNQjYcGzrh+bGmhlZAEW+pp3FWUEuyUUw6dUU7itpJ9wWUEu2aVQ7uswlwRwXcaTKq851Ve.qRFUDV+W3lBYyH
-
@oskarsh said in scroll event for script panel mouse callback:
@Christoph-Hart friendly bump while HISE is seeing a lot of good commits :)
I agree!
-
D d.healey referenced this topic on
-
@oskarsh Another friendly bump.
I want to use it to move panels down/up.
-
Old thread, I know... but wondering is there a way to do this in 2025?
I'm using a panel to draw EQ controls. I have control over freq with click and using a right click modifier I can do Q. Is there a way to capture the mouse scroll wheel so I can map that to control Q value with a panel instead of needing right click? Pretty much every other modern EQ plugin uses scroll wheel for Q adjustment so I very much would like to do that.
I'm using custom DSP so afaik I can't map that to a default filter floating tile, instead I'm drawing everything I need on a panel.
-
@whoopsydoodle said in scroll event for script panel mouse callback:
I can't map that to a default filter floating tile
If it's going through scriptnode I think you can.
And the answer to your question is nope.