From 275ed426025fc53d230a99ab89a658929b1698b5 Mon Sep 17 00:00:00 2001 From: FlamedDogo99 <96555444+FlamedDogo99@users.noreply.github.com> Date: Sat, 15 Jun 2024 19:06:14 -0600 Subject: [PATCH] Update eaglermobile.user.js --- eaglermobile.user.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/eaglermobile.user.js b/eaglermobile.user.js index 1289cfa..355cf07 100644 --- a/eaglermobile.user.js +++ b/eaglermobile.user.js @@ -227,6 +227,7 @@ function createTouchButton(buttonClass, buttonDisplay, elementName) { touchButton.classList.add(buttonDisplay); touchButton.classList.add("mobileControl"); touchButton.addEventListener("touchmove", function(e){e.preventDefault()}, false); + touchButton.addEventListener(“contextmenu”, function(e){e.preventDefault()}); return touchButton; } @@ -550,6 +551,7 @@ customStyle.textContent = ` outline:none; box-shadow: none; border: none; + pointer-events: none !important; } .mobileControl:active, .mobileControl.active { position: absolute; @@ -570,11 +572,19 @@ customStyle.textContent = ` outline:none; box-shadow: none; border: none; - + pointer-events: none !important; } - html, body { + html, body, canvas { height: -webkit-fill-available !important; 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 { display: none;