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

[Question] Popup scroll speed is too fast in Firefox #322

Open
BilderLoong opened this issue Oct 26, 2023 · 1 comment
Open

[Question] Popup scroll speed is too fast in Firefox #322

BilderLoong opened this issue Oct 26, 2023 · 1 comment

Comments

@BilderLoong
Copy link

Issue encountered

The scroll speed is too fast in Firefox.

What I expected

Normal scroll speed.


I discovered that this was done intentionally. Could you provide some insight about this?

ODH/src/fg/js/frame.js

Lines 114 to 118 in 8959e8d

function onMouseWheel(e) {
document.querySelector('html').scrollTop -= e.wheelDeltaY / 3;
document.querySelector('body').scrollTop -= e.wheelDeltaY / 3;
e.preventDefault();
}

And thanks for this amazing plugin. It has been immensely helpful during my language-learning journey.

@BilderLoong
Copy link
Author

I opened up a PR #323 for 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

No branches or pull requests

1 participant