Trying to limit input events

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-10-14 15:52:09 -07:00
parent 54ed982a42
commit caab741e2c
2 changed files with 10 additions and 0 deletions

View File

@ -102,6 +102,13 @@ Polymer({
"scroll": "onScroll"
},
onScroll: function(event) {
console.log("Scroll attempt in lightbox");
event.preventDefault();
event.stopImmediatePropagation();
event.stopPropagation();
},
onFocus: function() {
this.hasFocus = true;
},

View File

@ -45,6 +45,7 @@
left: 0px;
right: 0px;
font-size: 0.6em;
pointer-events: none;
}
#actions {
@ -54,11 +55,13 @@
opacity: 0;
font-size: 0.6em;
color: #ddd;
pointer-events: none;
}
:host(:hover) #info,
:host(:hover) #actions {
opacity: 1;
pointer-events: all;
}
</style>