Skip to content

Commit

Permalink
Merge pull request #20 from PolymerElements/tap-when-disabled
Browse files Browse the repository at this point in the history
respect pointer-events:none in tap()
  • Loading branch information
notwaldorf committed Aug 24, 2015
2 parents 2073daf + 85c11ff commit 1687160
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 1687160

Please sign in to comment.