The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Horizontal drag scrolling Reply To: Horizontal drag scrolling


horizontal momentum drag on iOS devices

This should be possible but not without having a scrollbar. You wouldn’t even need the script then :

Blog link

So when you vertically (touch) scroll down the page on mobile devices it uses the native OS default?

Yes but only on body. Any other scrollable element would need the CSS in the link. And overflow can’t be hidden.

Taking it to the next level would be to add some inertia dragging. And making it ‘infinite’ instead of back and forth.

[Nonchalant whistling]