Skip to content

Commit

Permalink
Merge pull request #18 from ezhlobo/update_event_detector
Browse files Browse the repository at this point in the history
Check touch events first than pointer events
  • Loading branch information
pukhalski committed Jan 21, 2015
2 parents da233a5 + d0bcdc0 commit 97c0364
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions dist/tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@
};

init = function() {
var i = eventMatrix.length;

while ( i-- ) {
for ( var i = 0, l = eventMatrix.length; i < l; i++ ) {
if ( eventMatrix[ i ].test ) {
deviceEvents = eventMatrix[ i ].events;

Expand Down
2 changes: 1 addition & 1 deletion dist/tap.min.js

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

4 changes: 1 addition & 3 deletions src/tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@
};

init = function() {
var i = eventMatrix.length;

while ( i-- ) {
for ( var i = 0, l = eventMatrix.length; i < l; i++ ) {
if ( eventMatrix[ i ].test ) {
deviceEvents = eventMatrix[ i ].events;

Expand Down

0 comments on commit 97c0364

Please sign in to comment.