Skip to content
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

Pointer Lock and Wheel Events don't work well together #745

Open
Willard21 opened this issue Dec 20, 2020 · 0 comments
Open

Pointer Lock and Wheel Events don't work well together #745

Willard21 opened this issue Dec 20, 2020 · 0 comments

Comments

@Willard21
Copy link

There appears to be some weird event shenanigans going on in the live editor. When the pointer is locked to the canvas, and its theoretical position passes outside the canvas, wheel events can no longer be canceled to prevent the page from scrolling. This seems to be worse in Chrome, but occasionally happens in Firefox as well.

To reproduce, visit this demo and click the canvas to lock the pointer. Test to see that scrolling is disabled. Then move the pointer (red dot) off the edge of the canvas and scroll again. The page will move.

To test if this was a browser bug or KA bug, I downloaded the page source and ran it in a file. Most of the page scripts failed to load, and the bug was no longer present, so I assume that means it's being caused by some JS running on the page. If you think I should report this on the Chromium bug tracker instead, let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant