react-easy-swipe
Advanced tools
Comparing version
{ | ||
"name": "react-easy-swipe", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "React easy swipe - Easy handler for common touch operations", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -25,13 +25,13 @@ # REACT EASY SWIPE | ||
class MyComponent extends Component { | ||
onSwipeStart() { | ||
console.log('Start swiping...'); | ||
onSwipeStart(event) { | ||
console.log('Start swiping...', event); | ||
} | ||
onSwipeMove(position) { | ||
console.log(`Moved ${position.x} pixels horizontally`); | ||
console.log(`Moved ${position.y} pixels vertically`); | ||
onSwipeMove(position, event) { | ||
console.log(`Moved ${position.x} pixels horizontally`, event); | ||
console.log(`Moved ${position.y} pixels vertically`, event); | ||
} | ||
onSwipeEnd() { | ||
console.log('End swiping...'); | ||
onSwipeEnd(event) { | ||
console.log('End swiping...', event); | ||
} | ||
@@ -38,0 +38,0 @@ |
22474
0.2%