scroll event for script panel mouse callback
-
Would it be possible to add
event.scroll and event.scrollValue
to the Script Panels MouseCallback?
-
@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 though 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.