react-voodoo 2.2.2 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-voodoo",
3
- "version": "2.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.2",
17
- "react-dom": "^16.0.0 || ^17.0.2"
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
  }