jakiestfu / Snap.js

A Library for creating beautiful mobile shelfs in Javascript (Facebook and Path style side menus)
http://jakiestfu.github.io/Snap.js/
5.99k stars 666 forks source link

snapper.trigger('start'); #277

Open axul opened 7 years ago

axul commented 7 years ago

Is there a way to manually trigger the startevent? I have an horizontal scrolling div, and I'm trying to drag the snapper out when the scrollLeft is 0, but disable the snapper if the div is scrolled. this way I can slide through my div normally unless I reach scrollLeft 0.

I though of triggering the startevent when trying to swipe when reaching scrollLeft 0