Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Mac smooth scrolling to work on an element

I've created a virtual-rendering implementation (similar to what you would find in the project SlickGrid). Everything seems to be working very well, with one problem: On Mac, smooth scrolling (the rubber-banding and fade-to-stop) doesn't work on my element when I add overflow: auto??

http://syntaqx.com/infiniload/

Any help would be appreciated.

like image 649
syntaqx Avatar asked Dec 06 '25 08:12

syntaqx


1 Answers

You can use JS Librarys: https://github.com/ftlabs/ftscroller

FTScroller is a cross-browser Javascript/CSS library to allow touch, mouse or scrollwheel scrolling within specified elements, with pagination, snapping and bouncing support.

like image 121
Taedcke Avatar answered Dec 08 '25 20:12

Taedcke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!