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

fix: normalize scale delta during various environments #33

Merged
merged 1 commit into from
May 27, 2018
Merged

Conversation

ktsn
Copy link
Owner

@ktsn ktsn commented May 27, 2018

fix #26

I realized we already can scroll with Shift + scroll and zoom with Ctrl + scroll. So I would keep this behavior as official keyboard shortcut.

But there are some inconsistency of deltaY on WheelEvent during various environments. e.g. Windows + mouse provides too large value for deltaY. So I have normalized it not to change scale too much by one wheel event.

@ktsn ktsn merged commit 2aab18c into master May 27, 2018
@ktsn ktsn deleted the shortcuts branch May 27, 2018 02:16
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.

UI improvements of scroll / zoom
1 participant