Skip to content

Commit

Permalink
respect pointer-events:none in tap()
Browse files Browse the repository at this point in the history
  • Loading branch information
notwaldorf committed Aug 24, 2015
1 parent 2073daf commit 85c11ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mock-interactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
}

function tap(node) {
// Respect nodes that are disabled in the UI.
if (window.getComputedStyle(node)['pointer-events'] === 'none')
return;
var xy = middleOfNode(node);
down(node, xy);
up(node, xy);
Expand Down

0 comments on commit 85c11ff

Please sign in to comment.