react-with-gesture
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -76,3 +76,3 @@ import React from 'react'; | ||
props.onUp && props.onUp(newProps); | ||
props.onAction && props.onAction(newProps); | ||
return newProps; | ||
@@ -100,3 +100,3 @@ }); | ||
props.onDown && props.onDown(newProps); | ||
props.onAction && props.onAction(newProps); | ||
return newProps; | ||
@@ -123,3 +123,3 @@ }); | ||
props.onMove && props.onMove(newProps); | ||
props.onAction && props.onAction(newProps); | ||
return newProps; | ||
@@ -126,0 +126,0 @@ }); |
@@ -82,3 +82,3 @@ 'use strict'; | ||
props.onUp && props.onUp(newProps); | ||
props.onAction && props.onAction(newProps); | ||
return newProps; | ||
@@ -106,3 +106,3 @@ }); | ||
props.onDown && props.onDown(newProps); | ||
props.onAction && props.onAction(newProps); | ||
return newProps; | ||
@@ -129,3 +129,3 @@ }); | ||
props.onMove && props.onMove(newProps); | ||
props.onAction && props.onAction(newProps); | ||
return newProps; | ||
@@ -132,0 +132,0 @@ }); |
{ | ||
"name": "react-with-gesture", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "hoc for receiving gestures", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-with-gesture", |
@@ -23,3 +23,3 @@ import React from 'react' | ||
const newProps = { ...state, down: false } | ||
props.onUp && props.onUp(newProps) | ||
props.onAction && props.onAction(newProps) | ||
return newProps | ||
@@ -43,3 +43,3 @@ }) | ||
} | ||
props.onDown && props.onDown(newProps) | ||
props.onAction && props.onAction(newProps) | ||
return newProps | ||
@@ -60,3 +60,3 @@ }) | ||
} | ||
props.onMove && props.onMove(newProps) | ||
props.onAction && props.onAction(newProps) | ||
return newProps | ||
@@ -101,8 +101,4 @@ }) | ||
transient: PropTypes.bool, | ||
/** Optional. Calls back on mouse-down or surface touched */ | ||
onDown: PropTypes.func, | ||
/** Optional. Calls back on mouse-up or touch lifted */ | ||
onUp: PropTypes.func, | ||
/** Optional. Calls back on mouse/touch move */ | ||
onMove: PropTypes.func, | ||
/** Optional. Calls back on mouse or touch down/up/move */ | ||
onAction: PropTypes.func, | ||
} | ||
@@ -109,0 +105,0 @@ static defaultProps = { touch: true, mouse: true } |
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
89239
647