Skip to content

Commit

Permalink
Merge pull request #52 from ezhlobo/fix-voiceover-blocker
Browse files Browse the repository at this point in the history
Fix voiceover blocker for clicks
  • Loading branch information
ezhlobo committed Feb 3, 2016
2 parents f1307c4 + 86c6f1f commit 9078bc4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
11 changes: 1 addition & 10 deletions dist/tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,6 @@
if (!utils.fireFakeEvent(e, Tap.options.eventName)) {
return e.preventDefault();
}
},

emulatedTap: function( e ) {
if ( coords.offset ) {
utils.fireFakeEvent( e, Tap.options.eventName );
}

return e.preventDefault();
}
};

Expand All @@ -142,9 +134,8 @@
attachDeviceEvent('start');
attachDeviceEvent('move');
attachDeviceEvent('end');
utils.attachEvent(document.documentElement, 'click', handlers['emulatedTap']);

return false;
break;
}
}

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.

11 changes: 1 addition & 10 deletions src/tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@
if (!utils.fireFakeEvent(e, Tap.options.eventName)) {
return e.preventDefault();
}
},

emulatedTap: function( e ) {
if ( coords.offset ) {
utils.fireFakeEvent( e, Tap.options.eventName );
}

return e.preventDefault();
}
};

Expand All @@ -78,9 +70,8 @@
attachDeviceEvent('start');
attachDeviceEvent('move');
attachDeviceEvent('end');
utils.attachEvent(document.documentElement, 'click', handlers['emulatedTap']);

return false;
break;
}
}

Expand Down

0 comments on commit 9078bc4

Please sign in to comment.