From 1fd6d799c51bcd36eb064b7559f8621d9217b19a Mon Sep 17 00:00:00 2001 From: Razvan Moraru Date: Tue, 31 Mar 2015 13:27:50 +0200 Subject: [PATCH] Action should be performed only on desired target element --- demo.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/demo.html b/demo.html index cc5b1bd..52ff25d 100644 --- a/demo.html +++ b/demo.html @@ -114,7 +114,13 @@ var scope = document.querySelector('template[is=auto-binding]'); scope.tapAction = function(e) { + + if (e.target.nodeName !== "PAPER-SHADOW") { // action should be performed only on desired element + return; + } + var target = e.target; + if (!target.down) { target.setZ(target.z + 1); if (target.z === 5) {