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"
|
"scroll": "onScroll"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onScroll: function(event) {
|
||||||
|
console.log("Scroll attempt in lightbox");
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopImmediatePropagation();
|
||||||
|
event.stopPropagation();
|
||||||
|
},
|
||||||
|
|
||||||
onFocus: function() {
|
onFocus: function() {
|
||||||
this.hasFocus = true;
|
this.hasFocus = true;
|
||||||
},
|
},
|
||||||
|
@ -45,6 +45,7 @@
|
|||||||
left: 0px;
|
left: 0px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
font-size: 0.6em;
|
font-size: 0.6em;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#actions {
|
#actions {
|
||||||
@ -54,11 +55,13 @@
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
font-size: 0.6em;
|
font-size: 0.6em;
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(:hover) #info,
|
:host(:hover) #info,
|
||||||
:host(:hover) #actions {
|
:host(:hover) #actions {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
pointer-events: all;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user