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

core: Fix mouseWheel event not being dispatched in AVM2 #14550

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lord-McSweeney
Copy link
Collaborator

@Lord-McSweeney Lord-McSweeney commented Dec 29, 2023

I still need to add a test for this.

I'm not sure why, but the wheel event being dispatched is jittery for me. I'd appreciate manual testing with games that use the mouse wheel (e.g. Scratch 2). Additionally, kmeisthax's comment on #5767 seems relevant- at least I can reproduce it:

Flash Player appears to report a delta of 3/-3 on my machine when Ruffle reports 1/-1

If anyone else can reproduce that Ruffle scrolls less than Flash, I can make the change to multiply the reported delta by 3.

@MrCheeze
Copy link
Contributor

MrCheeze commented Dec 29, 2023

Flash docs say delta "depends on the device and operating system and is usually configurable by the user" - guessing it depends on this setting on Windows?
image

@Lord-McSweeney
Copy link
Collaborator Author

Is that setting at 3 by default? I'm on Linux and I assumed FP kept consistent behavior throughout the Windows and Linux builds.

@MrCheeze
Copy link
Contributor

Yes, 3 is the default on windows.

@n0samu
Copy link
Member

n0samu commented Jan 17, 2024

I've opened an issue for the delta problem: #14795. It's a preexisting issue so it shouldn't block this PR.

@evilpie evilpie added the waiting-on-review Waiting on review from a Ruffle team member label Jan 17, 2024
@Dinnerbone Dinnerbone added waiting-on-author Waiting on the PR author to make the requested changes and removed waiting-on-review Waiting on review from a Ruffle team member labels Jan 17, 2024
@Dinnerbone
Copy link
Contributor

(waiting for the mentioned test :D)

@torokati44 torokati44 added avm2 AVM2 (ActionScript 3.0) issues input Issues relating to user input in Flash content labels Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
avm2 AVM2 (ActionScript 3.0) issues input Issues relating to user input in Flash content waiting-on-author Waiting on the PR author to make the requested changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants