fix(clickBlock): show 1px of clickblock

This commit is contained in:
Adam Bradley
2015-11-29 20:12:05 -06:00
parent 9dde122d4f
commit 8e2e5a7ddb
2 changed files with 7 additions and 6 deletions

View File

@@ -7,8 +7,7 @@ let isShowing = false;
export class ClickBlock {
enable() {
cbEle = document.createElement('div');
cbEle.className = 'click-block';
cbEle = document.createElement('click-block');
document.body.appendChild(cbEle);
cbEle.addEventListener('touchmove', function(ev) {
ev.preventDefault();

View File

@@ -161,7 +161,8 @@ backdrop {
// Fill the screen to block clicks (a better pointer-events: none)
// to avoid full-page reflows and paints which can cause flickers
.click-block {
click-block {
display: block;
position: absolute;
top: 0;
right: 0;
@@ -169,10 +170,11 @@ backdrop {
left: 0;
opacity: 0;
z-index: $z-index-click-block;
transform: translate3d(-9999px, 0px, 0px);;
transform: translate3d(0px, -100%, 0px);
transform: translate3d(0px, calc(-100% + 1px), 0px);
//background: red;
//opacity: .3;
// background: red;
// opacity: .3;
}
.click-block-active {