dragscroll
dragscroll copied to clipboard
support mobile
Adds support for mobile.
Thumbs up from my side! :)
Simple Touches doesn't work anymore. I had to comment out
e.preventDefault();
in
mousedown.split(' ').forEach(function(ev) { ... }
@ma-pe I think that might mess up stuff depending on the browser. I found if you want dragscroll + interactive elements within there's no silver bullet and you're gonna need a bit of custom code, so I think I'll leave my branch as i for now.
Thanks for the report!
i know this is super stale, but just in case anyone else finds this:
I realized you dont actually need dragscroll on mobile, it's just how mobile works by default. all you gotta do is overflow: scroll
using this version gave me a weird bug where things scroll twice as fast as they should.