2 ms·
Ah gotcha, yes you are indeed correct. Something like custom amount of lines to scroll isn't possible afaik. I was just stating that with scrollIntoView and th
by cookiengineer 6y ago
Ah gotcha, yes you are indeed correct. Something like custom amount of lines to scroll isn't possible afaik.
I was just stating that with scrollIntoView and the element's scroll-snap-align and scroll-padding/scroll-margin CSS properties you could set the wanted offsets and alignments of the scrollbar and define what you were argueing about.
But of course, you cannot influence the behaviour of the scrollbar arrows themselves.
[1] https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-align https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap...
- chrismorgan 6y agoAh, CSS scroll snapping. Refer to my other comment in this thread about that, I strongly recommend against using it for layout matters like this, it messes with the scrolling behaviour (especially on devices with precise-scrolling touchpads and inertia) something fierce; it’s quite unavoidably every bit as bad as doing the scrolljacking in JS.