-
-
Notifications
You must be signed in to change notification settings - Fork 188
[scroll area] Disable user-select
on scrollbar and non-main button interactions
#2338
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
Conversation
commit: |
Bundle size report
|
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
3c9bec2
to
df48ddd
Compare
@@ -84,6 +84,10 @@ export const ScrollAreaRoot = React.forwardRef(function ScrollAreaRoot( | |||
}); | |||
|
|||
const handlePointerDown = useEventCallback((event: React.PointerEvent) => { | |||
if (event.button !== 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this related to the issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While testing the scrollbar with text selection/user-select styling I noticed this bug, too. Updated title to better reflect both fixes
user-select
none style on scrollbaruser-select
on scrollbar and non-main button interactions
Closes #2329
Doesn't seem to repro on macOS or Windows, so likely caused by some specific esoteric setup