Comments (3)
Good idea. Can you try adding it?
On 8 July 2014 14:07:36 Jonnas Fonini [email protected] 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:
#18
from slip.
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.
from slip.
Yes, please make PR, but rename the event to slip:cancelswipe.
from slip.
Related Issues (20)
- Suggestion: ignore elements
- 'click' gets triggered when element is dropped (mouse only) HOT 4
- 'reorder' is raised on click without delay
- Suggestion: include pointer type in event info
- Scrolling while dragging seems to be broken HOT 10
- stopPropagation() on onMouseUp is interfering with other libraries
- How to Swip Left Action HOT 1
- Suggestion: adding a BSD-2 license file
- Get order HOT 3
- Get Array of all data HOT 3
- Light version request HOT 3
- Safari cursor update bug HOT 1
- Example index.html generates error HOT 1
- [Question] Programmatically trigger Slip actions HOT 2
- Click on 'sortable' element under Firefox HOT 8
- how to add a fixed label column HOT 1
- Locked elements in lists HOT 7
- Element gets added again when I swipe left HOT 2
- Npm call HOT 1
- get index or id of an <li> element HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slip.