react-voodoo 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-voodoo",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "license": "MIT",
5
5
  "main": "./dist/react-voodoo.js",
6
6
  "author": "Nathan Braun <n8tz.js@gmail.com>",
package/readme.md CHANGED
@@ -164,6 +164,12 @@ const Sample = ( {} ) => {
164
164
  // called when inertia know where it will snap ( when the user stop dragging )
165
165
  willSnap : ( currentSnapIndex, targetWayPointObj ) => {},
166
166
 
167
+ // called when inertia end
168
+ onStop : ( pos, targetWayPointObj ) => {},
169
+
170
+ // called when inertia end on a snap
171
+ onSnap : ( snapIndex, targetWayPointObj ) => {},
172
+
167
173
  // list of waypoints object ( only support auto snap 50/50 for now )
168
174
  wayPoints : [{ at: 100 }, { at: 200 }]
169
175
  }