3 ms·
> Codepen also doesn't allow me to scroll past the beginning/end of the file, which feels jarring and just wrong with a touch scroll device. Stuff like this of
by afavour 3y ago
> Codepen also doesn't allow me to scroll past the beginning/end of the file, which feels jarring and just wrong with a touch scroll device.
Stuff like this often happens because of a lack of native styling options. Can’t change the appearance of the scroll bar (for, yes, often dumb reasons)? OK then we’ll use a giant JS library that poorly replicates every aspect of scrolling.
At least with native scroll styling, ugly as it may be, you get native behaviours.
- eyelidlessness 3y agoThis doesn’t make any sense. The native behavior is what OP wants. No one needs to recreate the native behavior, it is already available
- The_Colonel 3y agoThe person you're reacting to is making a distinction between a native (in the context of browser) scrollbar with the ability to change its presentational style (but not behavior) and a completely custom JS driven scrollbar with likely different behavior from the native experience.