Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work when scroll snapping enabled #49

Open
garygreen opened this issue Feb 7, 2019 · 1 comment
Open

Doesn't work when scroll snapping enabled #49

garygreen opened this issue Feb 7, 2019 · 1 comment

Comments

@garygreen
Copy link

garygreen commented Feb 7, 2019

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
Copy link
Author

garygreen commented Feb 7, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant