Handling snap issues with use:dragscroll #244
Closed
Paintersrp
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
@Paintersrp Thank you much for the detailed suggestion. I will look into it soon 🙏. Not sure why you closed this, a mistake perhaps? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed there were some issues with the use:draggable when dealing with an element that also uses a scroll-snap-type. With these changes, the dragging behaves like normal by removing any scroll-snap-type during dragging, then resetting and snapping to the nearest child when released as normal. I added a snap boolean parameter and a snapOffset to adjust how much to offset any snapping to match the styling.
So far I haven't really noticed any negatives or hiccups, so if anyone else happens to run into issues with a scroll-snap-type, try this and hopefully it will help you out.
Beta Was this translation helpful? Give feedback.
All reactions