You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using angular-hammer to allow saving an object on vertical pan after passing a certain threshold. The logic is, if the dragging position event.center.y passes the threshold, it should trigger a save on panend. If it does not pass the threshold, the object returns to its starting position and by the next pan, it should reset. It works the first time, however, the event panend is registered — so if the first pan didn't reach the threshold (it still emit panend) which by the second pan (passing the threshold) the emitted panend would be called even though the current pan does not end.
Is there a way to remove/unbind the panend event?
Thank you
The text was updated successfully, but these errors were encountered:
Hi,
I'm using angular-hammer to allow saving an object on vertical pan after passing a certain threshold. The logic is, if the dragging position
event.center.y
passes the threshold, it should trigger a save onpanend
. If it does not pass the threshold, the object returns to its starting position and by the next pan, it should reset. It works the first time, however, the event panend is registered — so if the first pan didn't reach the threshold (it still emit panend) which by the second pan (passing the threshold) the emitted panend would be called even though the current pan does not end.Is there a way to remove/unbind the panend event?
Thank you
The text was updated successfully, but these errors were encountered: