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

Widened Firefox scroll error range to 10px #53

Closed
wants to merge 1 commit into from

Conversation

nzayatz14
Copy link

Hi @supersnager,

I believe I managed to patch the scrolling issue we were running into on Firefox with the MessageList component described here. All I did was widen the scrolling error to 10px. I thought this was reasonable because the perfect-scrollbar component you are using also used a 10px range:

if (e.deltaMode && e.deltaMode === 1) {
      // Firefox in deltaMode 1: Line scrolling
      deltaX *= 10;
      deltaY *= 10;
    }

This is not a permanent solution, but it should suffice until you get around to overhauling the scrolling logic like you said you would.

Hope this helps,
Nick

the 10px range matches the 10px range found in perfect-scrollbar
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.

None yet

2 participants