When cursor is dragged far right, to the zeroth pixel, custom scrollbar doesn't respond, instead text is selected as if dragging anywhere inside body.
Put a browser in full screen or maximize, so you know you're not dragging on the window resize border. (On Mac, scroll a bit so the OS scrollbar appears.)
::-webkit-scrollbar { ... }
, eg. give a it a width and a background color. And yes, ::-webkit-scrollbar-thumb
is end to end, that's not the issue I believe.Anyone know an elegant solution? Cheers
Got it, quite unexpected behavior.
Set the body, main container or whatever is your main scroll to position: fixed
or absolute
, so you have access to right
property.
Set right: -1px;