Skip to content

Commit

Permalink
Fixed an issue with native clicks being prevented for untracked eleme…
Browse files Browse the repository at this point in the history
…nt types.
  • Loading branch information
munkychop committed Apr 3, 2014
1 parent 9e9c593 commit e3e4b43
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swiftclick",
"version": "1.1.1",
"version": "1.1.2",
"homepage": "https://github.com/tmwagency/swiftclick",
"authors": [
"Ivan Hayes <@munkychop>"
Expand All @@ -21,7 +21,7 @@
"Gruntfile.js",
"index.html",
"js/app",
"js/libs",
"js/dist",
"node_modules",
"package.json"
]
Expand Down
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.

4 changes: 2 additions & 2 deletions js/libs/swiftclick.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ function SwiftClick (contextEl)

function touchEndHandler (event)
{
event.preventDefault ();

_touchEnd = event.changedTouches[0];

// cancel touch if the node type is unacceptable (not in the dictionary), or if the touchpoint position has drifted significantly.
Expand All @@ -92,6 +90,8 @@ function SwiftClick (contextEl)
return true;
}

event.preventDefault ();

_currentSwiftEl.focus (); // TODO : is this working correctly?
synthesizeClickEvent ();

Expand Down

0 comments on commit e3e4b43

Please sign in to comment.