-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invisible content extending outside scroller in HTML5 target #186
Comments
You can try following workaround: |
Thanks for the suggestion - we'll try that. |
Just to clarify, is this an issue with Stablexui or is it the HTML5 backend in Openfl? (I'd like to know whether I should pursue it further on the Openfl forum.) |
it's an issue of OpenFL's html5 backend. Code should look like this: scroll.addEventListener(MouseEvent.CLICK, function(e:MouseEvent) {
if (e.localX < || e.localX > scroll.w || e.localY < 0 || e.localY > scroll.h) {
e.stopImmediatePropagation();
var objList = Lib.current.stage.getObjectsUnderPoint(new Point(e.stageX, e.stageY);
var nextObj = ... //iterate through objList to find next object below scroll
nextObj.dispatchEvent(new MouseEvent(MouseEvent.CLICK, ....));
}
}); |
OK - thank you for the code. Much appreciated. |
This is related to a previous post about visible content appearing outside the scroller in HTML5.
Box content outside the scroller is not visible but it is masking other content (dependent on layer) and taking mouse events (overflow = false).
I have added a mouseClick listener to the Scroll widget in the samples (using the map). If I click outside the scroller over a point where the map virtually is when scrolled, it is taken.
With the vertical NME scroller in the same example, scrolling can be achieved by dragging above or below (outside) the scroller.
Any thoughts on how to fix this? It is currently breaking our app.
openfl: [2.0.1], Haxe: [3.1.3], stablexui: [1.0.17]
The text was updated successfully, but these errors were encountered: