react-voodoo 2.2.3 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/react-voodoo.js +1 -1
- package/dist/react-voodoo.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +6 -0
package/package.json
CHANGED
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
|
}
|