Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

TedDriggs
Copy link

The current code ignores magnitude differences in deltaY, resulting in an experience that is either too fast on trackpad or too slow with a mousewheel.

This change allows those to differ within a clamped range, so that one zoomSpeed value works well for both input devices.

Fixes #1882

mojoaxel
mojoaxel previously approved these changes Jul 20, 2023
Copy link
Member

@mojoaxel mojoaxel left a comment

Choose a reason for hiding this comment

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

LGTM

@mojoaxel mojoaxel requested a review from Thomaash July 20, 2023 07:37
@jeffrey-e
Copy link

Looking forward to this improvement!

@TedDriggs
Copy link
Author

@Thomaash could you take a look at this PR? Having a fix for this would let us remove a very clunky workaround in our app where we have to give the user a setting to tell us which input device they're using.

Ted Driggs and others added 2 commits August 28, 2024 06:59
The current code ignores magnitude differences in deltaY, resulting in an experience that is either too fast on trackpad or too slow with a mousewheel.

This change allows those to differ within a clamped range, so that one zoomSpeed value works well for both input devices.

Fixes visjs#1882
Otherwise, right-to-left horizontal edges with middle-aligned labels would have their labels rendered at the origin.
This makes the actual problems in the code easier to find
@matthewyangcs
Copy link

+++ on this!

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

Successfully merging this pull request may close these issues.

Allow separate zoom speeds for wheel and trackpad

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.