Skip to content

Commit

Permalink
bah silly mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Colman committed Dec 21, 2016
1 parent a476d4b commit 2710874
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/TappableMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ var Mixin = {
if (movement.x > this.props.pressMoveThreshold || movement.y > this.props.pressMoveThreshold) {
this.cancelPressDetection();
}
if (movement.x > (this.props.moveThresholdX || this.props.moveThreshold) ||
movement.y > (this.props.moveThresholdY || this.props.moveThreshold)) {
if (movement.x > (this.props.moveXThreshold || this.props.moveThreshold) ||
movement.y > (this.props.moveYThreshold || this.props.moveThreshold)) {
if (this.state.isActive) {
this.setState({
isActive: false
Expand All @@ -225,8 +225,8 @@ var Mixin = {
this.processEvent(event);
var afterEndTouch;
var movement = this.calculateMovement(this._lastTouch);
if (movement.x <= (this.props.moveThresholdX || this.props.moveThreshold) &&
movement.y <= (this.props.moveThresholdY || this.props.moveThreshold) &&
if (movement.x <= (this.props.moveXThreshold || this.props.moveThreshold) &&
movement.y <= (this.props.moveYThreshold || this.props.moveThreshold) &&
this.props.onTap) {
event.preventDefault();
afterEndTouch = () => {
Expand Down

0 comments on commit 2710874

Please sign in to comment.