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

ScrollArea content should not get the focus when the user is scrolling #137

Open
cedricalfonsi opened this issue May 8, 2019 · 4 comments

Comments

@cedricalfonsi
Copy link

Hello,

Thank you for the nice plugin.

I'm wondering why the ScrollArea content is getting the focus by default on mouse wheel ? It breaks the default behavior of the browser. If an input field has the focus it should not lose it if the user is scrolling.

Best regards

@ScriptArtist
Copy link

any solution?

@RoeyMaor
Copy link

RoeyMaor commented Aug 4, 2019

+1

@ScriptArtist
Copy link

I made fork and fix this problem
https://github.com/ScriptArtist/reactScrollbar
npm install react-scrollbar-homy

@limpbrains
Copy link

This behaviour causes another problem:
When height of the scroll content more than window height Safari tries to fit it and scrolls page itself.
How to reproduce:
Open https://souhe.github.io/reactScrollbar/ in Safari desktop
Make window small. I made it 278 height.
When you start scrolling demo items you will notice instant page scrolling as well

This is very annoying when you have component with scrolling somewhere in the middle of the page

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

4 participants