dragscroll icon indicating copy to clipboard operation
dragscroll copied to clipboard

Doesn't work when scroll snapping enabled

Open garygreen opened this issue 5 years ago • 1 comments

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.

garygreen avatar Feb 07 '19 18:02 garygreen

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...

garygreen avatar Feb 07 '19 18:02 garygreen