From 85c11ff38616a4dbf6fd86566521ba21b46e40dd Mon Sep 17 00:00:00 2001 From: Monica Dinculescu Date: Mon, 24 Aug 2015 14:56:48 -0700 Subject: [PATCH] respect pointer-events:none in tap() --- mock-interactions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mock-interactions.js b/mock-interactions.js index 323b240..324390e 100644 --- a/mock-interactions.js +++ b/mock-interactions.js @@ -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);