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

web: Do not scroll the page when mouse wheel is handled in AVM2 #19029

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Dec 20, 2024

This patch prevents scrolling the page when the users scrolls content inside the SWF (i.e. when the content somehow handles the scroll).

Based on my testing this behavior is a lot smarter than Flash originally had, because Flash just trapped mouse wheel events. We might want to add an option to simulate this behavior too in the future.

You can easily test the behavior here: https://www.newgrounds.com/portal/view/922049.

@kjarosh kjarosh added A-web Area: Web & Extensions input Issues relating to user input in Flash content T-compat Type: Compatibility with Flash Player labels Dec 20, 2024
Useful on Chromium-based browsers, where the modal
is always displayed at the beginning.
This patch prevents scrolling the page when the users scrolls content
inside the SWF (i.e. when the content somehow handles the scroll).
This test verifies how scrolling works in AVM2 and whether
the page is scrolled when it should be or not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web Area: Web & Extensions input Issues relating to user input in Flash content T-compat Type: Compatibility with Flash Player
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant