nrkno / core-components

Accessible and lightweight Javascript components
https://static.nrk.no/core-components/latest/
MIT License
117 stars 10 forks source link

fix: Handle decimal values for scroll-directions when browser is zoomed #638

Closed skjalgepalg closed 2 years ago

skjalgepalg commented 2 years ago

Floor all scroll-values to handle potential decimal leftovers if browser is zoomed in or out, to address issues with core-scroll.

So far testing shows that this will leave 1px left over that we're not able to scroll past programmatically. Compared to present state, this is still an improvement.