-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Scrolling issues when inside a container that overflows #193
Comments
Seems like this happens when the keys are used... I'll take a closer look at it in the next days. It will be fixed with the next patch release :) |
Would like to pop in here and say I'm facing this issue with a horizontal scrolling container as well. Using React version |
Hey @simonwep again! 😄 I decided to choose your library and here I am dealing with same issue. I have radix-ui scroll area, and inside it, I want to use your selectable, but cannot scroll while selecting 😞 any idea? |
Could you re-produce it on https://codesandbox.io? Maybe your case is a good starting point for me to fix it, this has always been a somewhat tricky issue |
Sure, here is exactly your code from demo, but in scroll area wrapper - https://stackblitz.com/edit/vitejs-vite-fdtdkl?file=src%2FApp.jsx |
Hey, @simonwep, I found solution. Working on PR right now |
This seems to be a duplicate of #153, please move the discussion there. Maybe changing your boundary fixes it? |
What is the problem?
I have a parent element of the selection area with the following style:
What is the current behavior?
When scrolling, the selection area stays in the same position on screen, instead of also scrolling.
Please provide the steps to reproduce and create a CodeSandbox.
https://codesandbox.io/p/sandbox/viselect-vanilla-forked-bjz7jz
What is the expected behavior?
The selection area should also scroll, when scrolling down the screen.
Your environment:
The text was updated successfully, but these errors were encountered: