Trying to limit input events
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
54ed982a42
commit
caab741e2c
@ -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;
|
||||
},
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user