StablexUI icon indicating copy to clipboard operation
StablexUI copied to clipboard

Html5 target: Scroll widget content "draggable" outside of scroll area

Open cambiata opened this issue 11 years ago • 2 comments

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

cambiata avatar Jun 17 '13 18:06 cambiata

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.

RealyUniqueName avatar Jun 17 '13 18:06 RealyUniqueName

Ok, just as I guessed! I'll try the transparent sprite solution.

Cheers!

cambiata avatar Jun 17 '13 19:06 cambiata