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

Commit 79196c3

Browse files
committed
amend(gesture): fix firefox keyboard events
1 parent 3346532 commit 79196c3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/core/services/gesture/gesture.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ document.contains || (document.contains = function(node) {
1616

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

2322
// Prevent clicks unless they're sent by material

0 commit comments

Comments
 (0)