Skip to content

Commit

Permalink
fixed an issue with variable references that weren't renamed correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Hayes committed Jun 2, 2014
1 parent 6987c04 commit 0dcc914
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/dist/swiftclick.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions js/libs/swiftclick.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ function SwiftClick (contextEl)
_currentlyTrackingTouch = true;

// only add the 'touchend' listener now that we know the element should be tracked.
targetEl.removeEventListener("touchend", touchEndHandler, false);
targetEl.addEventListener("touchend", touchEndHandler, false);
}

Expand All @@ -94,8 +95,8 @@ function SwiftClick (contextEl)

// cancel the touch if the node type is unacceptable (not in the dictionary), or if the touchpoint position has drifted significantly.
if (!_shouldSynthesizeClickEvent ||
Math.abs(_touchEnd.pageX - _touchStartPoint.x) > _self.options.maxTouchDrift ||
Math.abs(_touchEnd.pageY - _touchStartPoint.y) > _self.options.maxTouchDrift ||
Math.abs(touchend.pageX - _touchStartPoint.x) > _self.options.maxTouchDrift ||
Math.abs(touchend.pageY - _touchStartPoint.y) > _self.options.maxTouchDrift ||
Math.abs(getScrollPoint().x - _scrollStartPoint.x) > _self.options.maxTouchDrift ||
Math.abs(getScrollPoint().y - _scrollStartPoint.y) > _self.options.maxTouchDrift)
{
Expand Down

0 comments on commit 0dcc914

Please sign in to comment.