Closed ikxin closed 3 months ago
This is not possible, it's the Mac OS system that defines how scrollbars are displayed: https://muffinresearch.co.uk/osx-remove-scrollbars-that-appear-when-using-a-mouse/
You should have this behavior on every website.
I saw at Arco Design that they support custom Scrollbar when using the mouse.
@benjamincanac
Another example is Naive UI.
Nuxt UI Pro does that for Windows users automatically. I'm not sure to see the link with @nuxt/ui
though, you can apply this to your website if you like.
@benjamincanac The Arco design and Naive UI mentioned above can both achieve this effect on macOS. However, from what I have seen, they do not directly modify ::-webkit-scrollbar
, but instead hide the native scrollbar using display: none;
, then control the style through another DOM element, and finally encapsulate it into a Scrollbar component.
It's due to their Scrollbar component: https://www.naiveui.com/en-US/os-theme/components/scrollbar. We have no plan to make such component at this time 😬
Description
In MacBook Pro, when using the mouse
When using the touchpad
Additional context
No response