react-voodoo 2.2.2 → 2.2.4
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 +3 -3
- package/readme.md +6 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-voodoo",
|
3
|
-
"version": "2.2.
|
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>",
|
@@ -13,8 +13,8 @@
|
|
13
13
|
"testAuto": "nodemon --watch ./dist/react-voodoo.js --watch ./etc/tests/**/*.js --exec \"npm test\""
|
14
14
|
},
|
15
15
|
"peerDependencies": {
|
16
|
-
"react": "^16.0.0 || ^17.0.
|
17
|
-
"react-dom": "^16.0.0 || ^17.0.
|
16
|
+
"react": "^16.0.0 || ^17.0.1",
|
17
|
+
"react-dom": "^16.0.0 || ^17.0.1"
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
20
|
"@babel/runtime": "^7.12.5",
|
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
|
}
|