mirror of
https://github.com/FlamedDogo99/EaglerMobile.git
synced 2024-11-23 04:26:04 -08:00
Update eaglermobile.user.js
This commit is contained in:
parent
6f34ca6a76
commit
275ed42602
|
@ -227,6 +227,7 @@ function createTouchButton(buttonClass, buttonDisplay, elementName) {
|
||||||
touchButton.classList.add(buttonDisplay);
|
touchButton.classList.add(buttonDisplay);
|
||||||
touchButton.classList.add("mobileControl");
|
touchButton.classList.add("mobileControl");
|
||||||
touchButton.addEventListener("touchmove", function(e){e.preventDefault()}, false);
|
touchButton.addEventListener("touchmove", function(e){e.preventDefault()}, false);
|
||||||
|
touchButton.addEventListener(“contextmenu”, function(e){e.preventDefault()});
|
||||||
return touchButton;
|
return touchButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -550,6 +551,7 @@ customStyle.textContent = `
|
||||||
outline:none;
|
outline:none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
border: none;
|
border: none;
|
||||||
|
pointer-events: none !important;
|
||||||
}
|
}
|
||||||
.mobileControl:active, .mobileControl.active {
|
.mobileControl:active, .mobileControl.active {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -570,11 +572,19 @@ customStyle.textContent = `
|
||||||
outline:none;
|
outline:none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
border: none;
|
border: none;
|
||||||
|
pointer-events: none !important;
|
||||||
}
|
}
|
||||||
html, body {
|
html, body, canvas {
|
||||||
height: -webkit-fill-available !important;
|
height: -webkit-fill-available !important;
|
||||||
touch-action: pan-x pan-y;
|
touch-action: pan-x pan-y;
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
outline: none;
|
||||||
|
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
||||||
}
|
}
|
||||||
.hide {
|
.hide {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user