Closed fonini closed 10 years ago
Good idea. Can you try adding it?
On 8 July 2014 14:07:36 Jonnas Fonini notifications@github.com wrote:
Hi,
it would be nice if there was an event like 'cancelswipe', to be fired when the user stops dragging the list item and the item returns to it's original position.
Thanks for the awesome lib!
Reply to this email directly or view it on GitHub: https://github.com/pornel/slip/issues/18
My solution was adding the following line above this.animateToZero:
this.animateToZero(removeClass);
this.dispatch(this.target.node, 'cancelswipe');
If you want, I can submit a PR. You may change the event name.
Yes, please make PR, but rename the event to slip:cancelswipe.
Hi,
it would be nice if there was an event like 'cancelswipe', to be fired when the user stops dragging the list item and the item returns to it's original position.
Thanks for the awesome lib!