Skip to content

web: Read WheelEvent.deltaMode before deltas. #14495

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

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Jan 25, 2022

So that Firefox doesn't switch to pixel mode for compat with other
browsers.

This should fix #14476, in terms
of restoring the previous behavior.

We probably want to change the pixel-based scrolling code to not scroll
so much (the deltaMode stuff normalizes to +/-1 tick for each wheel
event, perhaps the pixel-based value should do the same).

So that Firefox doesn't switch to pixel mode for compat with other
browsers.

This should fix mozilla#14476, in terms
of restoring the previous behavior.

We probably want to change the pixel-based scrolling code to not scroll
so much (the deltaMode stuff normalizes to +/-1 tick for each wheel
event, perhaps the pixel-based value should do the same).
@emilio
Copy link
Contributor Author

emilio commented Jan 25, 2022

r? @Snuffleupagus

@Snuffleupagus
Copy link
Collaborator

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/7c5a8f3c5e4b68f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/7c5a8f3c5e4b68f/output.txt

Total script time: 4.61 mins

Published

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you for fixing this!

@Snuffleupagus Snuffleupagus merged commit 5c3b245 into mozilla:master Jan 25, 2022
@emilio emilio deleted the ctrl-wheel branch January 26, 2022 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ctrl+mouse wheel zooming zooms in too quickly
3 participants