Dragscroll – a tiny JS library which enables scrolling via mouse drag
github.com
github.com
Nowadays I use my Thinkpad without Synaptics or trackpoint drivers and the middle button works perfectly: Either using it open links in new tabs, or pressing it to start scroll mode. Now the mouse pointer changes and moving it scrolls. Unfortunately some software breaks this, probably WPF
I'm thinking of one site in particular that implements prioritizing choices by drag/dropping them into order of preference. But when you try to use the site on a mobile browser, it just scrolls the page when you try to drag an item.
I'd like to suggest to them how to fix it, rather than just complain.
A similar approach should work for other libraries. You need to handle the "touch" events in addition to "mousedown" and "mouseup".
I understand this is for desktop, but it would be nice if it could not get in the way of what div/overflow gives us for free.
The problem is that in your examples this behavior no longer functions as expected on tablets.
The example should work well for both desktop and tablet. Your current implementation changes the normal behavior on tablets.