Proposal for controlling the snap scroll distance
When using both Lenis and the Snap package I noticed that there was no way to really control the distance that the user needed to scroll from the starting point of a snap, in order to trigger the snap to the next snapping point. I also found that at least one other person (with people apparently watching the comment) had the same need: https://github.com/darkroomengineering/lenis/issues/12#issuecomment-2604472145
This proposal adds two properties to the Snap instance options, scrollDistancePercentage and scrollDistance that allow you to control either the percentage needed to scroll or the exact pixels to scroll in order to trigger the snap. The percentage calculates a pixel value based on the difference between the prevSnap.value and the nextSnap.value. So if the distance between the snapping points is 500px, and the percentage is set to 20%, you would need to scroll 100px to trigger the snap.
Didn't see any tests in place to update or add to, but let me know what you think of the proposal and if I should change and or add anything.
Love the library. :)