Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
amend(gesture): fix firefox keyboard events
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Jan 29, 2015
1 parent 3346532 commit 79196c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/services/gesture/gesture.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ document.contains || (document.contains = function(node) {

document.addEventListener('click', function(ev) {
// Space/enter on a button, and submit events, can send clicks
var isKeyClick = ev.clientX === 0 && ev.clientY === 0 &&
ev.x === 0 && ev.y === 0;
var isKeyClick = ev.clientX === 0 && ev.clientY === 0;
if (isKeyClick || ev.$material) return;

// Prevent clicks unless they're sent by material
Expand Down

0 comments on commit 79196c3

Please sign in to comment.