StablexUI
StablexUI copied to clipboard
Html5 target: Scroll widget content "draggable" outside of scroll area
Hi Alexander, and thank you for great work on haxlibing and OpenFLing StablexUI!
One Html5 quirk here:
The content of a Scroll widget is actually possible to grab and move by clicking outside the visible scroll area (as long as you click over the invisble content part). In the scroll demo, http://ui.stablex.ru/demo/scrolling/ it's possible to grab and drag the map if clicking between the map scroll area and the tile scroll area.
/ Jonas
This is openfl-html5 related bug.
When i was making scrollRect
implementation for NME html5 target i had no luck with fixing this issue. At least we got scrolling :)
Perhaps it's time to revisit openfl-html5 code base... I'll have free time to try again in the beginning-middle of july.
Meanwhile you can place transparent sprites above invisible area of scrolled content to make these sprites block mouse events.
Ok, just as I guessed! I'll try the transparent sprite solution.
Cheers!