dragscroll
dragscroll copied to clipboard
Doesn't work when scroll snapping enabled
Scroll Snapping spec it's quite a new spec but has been around in some form for a while now.
If you have e.g. scroll-snap-type: x mandatory;
it will cause the drag scroll to not work at all
Proposed solution: If you dragging the content, it would make sense to disable the scroll snapping temporarily, then re-enable after finished dragging and allow the browser to snap to the desired position.
I think all that's required here is just to add a dragging
class onto the div whilst it's dragging, that way you can disable scroll snapping during dragging in your own css...