react-easy-swipe
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22474