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) {