3 ms·
If it wasn’t fore scrollbar styling, developers would just roll their own. And even if developers would be aware of how terrible it is, designers would still de
by runarberg 3y ago
If it wasn’t fore scrollbar styling, developers would just roll their own. And even if developers would be aware of how terrible it is, designers would still design it, and project managers would still demand it.
Even native scrolling is not without issues. If you have horizontal scrolling on a flex container with `flex-direction: row-reverse` the native scrollbar won’t work in Safari. So developers implementing a list which flows from the inline end to the start, are faced with two bad options. Either implement your custom scrollbar or reverse your list items before rendering to the page and set the scroll position everytime the list updates in JavaScript.
https://bugs.webkit.org/show_bug.cgi?id=221347#c12 https://bugs.webkit.org/show_bug.cgi?id=221347#c12
- jakub_g 3y agoThis. "How difficult would it be to write a custom implementation of scrollbar in JavaScript?" (whose performance would be 100x slower than native browser scrolling, but who cares, we all have Macbook Pros, right?)