0

I have a Scrollable area (by Radix UI) and a color picker (Chrome picker from React Color) in it.

When the user tries to pick a color on a mobile phone, the screen scrolls with his/her gestures. Thats not ideal while choosing a color; it results in bad UX. Therefore I would like to disable scrolling while choosing a color.

1 Answer 1

0

You can add custom css to target the scroll bar inside of the color picker

For example:

.colorPicker > .scrollBar {
     overflow-y: hidden !important; // vertical scroll
     overflow-x: hidden !important; // horizontal scroll
}
1
  • The color picker is inside a scrolleae area. Not the other way around
    – Jan D.M.
    Commented Aug 25, 2024 at 7:06

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.