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

Try to avoid to interpret wheel events as pinch-to-zoom ones (bug 1810800) #15957

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

calixteman
Copy link
Contributor

The solution here is likely far from perfect but as far as I can tell it works "correctly" on linux/mac/windows.
With Firefox, we've potentially a bug on laptops when the pref mousewheel.with_control.action is set to 1 (which means that we want to scroll even if ctrl is pressed). So we should hack on Firefox to find a satisfying solution but as said it's probably the best we can do.

@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/e6a89334c823d22/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/e6a89334c823d22/output.txt

Total script time: 1.50 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.

r=me, since this seems to work in my testing when using mouse-wheel zooming on Windows.

However, it really doesn't feel great having to jump through these kind of hoops and there's probably going to be some configuration where it still doesn't work correctly.

I wonder what our chances are of getting e.g. Firefox to add a property to the WheelEvent that would let us detect this particular case directly?

web/app.js Outdated Show resolved Hide resolved
@calixteman
Copy link
Contributor Author

r=me, since this seems to work in my testing when using mouse-wheel zooming on Windows.

However, it really doesn't feel great having to jump through these kind of hoops and there's probably going to be some configuration where it still doesn't work correctly.

Yep it's why it's far from perfect.
We can try to add some workarounds based on mouse-enter/leave.

I wonder what our chances are of getting e.g. Firefox to add a property to the WheelEvent that would let us detect this particular case directly?

Yes it's exactly what I've in mind :).

@calixteman
Copy link
Contributor Author

/botio integrationtest

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/ece3cbe8eb78f18/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/6590865d8ffaa21/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/6590865d8ffaa21/output.txt

Total script time: 4.39 mins

  • Integration Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/ece3cbe8eb78f18/output.txt

Total script time: 15.92 mins

  • Integration Tests: FAILED

@calixteman calixteman merged commit 0b9d32b into mozilla:master Jan 24, 2023
@calixteman calixteman deleted the 1810800 branch January 24, 2023 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants