From bd26c5d2db2f1fe6a7376992af78f743df853a15 Mon Sep 17 00:00:00 2001 From: FlamedDogo99 <96555444+FlamedDogo99@users.noreply.github.com> Date: Sat, 15 Jun 2024 19:51:09 -0600 Subject: [PATCH] Removed dumb fix --- eaglermobile.user.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/eaglermobile.user.js b/eaglermobile.user.js index 60c8a44..aa84ed2 100644 --- a/eaglermobile.user.js +++ b/eaglermobile.user.js @@ -65,14 +65,8 @@ Object.defineProperty(EventTarget.prototype, "addEventListener", { } return fn.apply(this, args); }, ...rest); - } else if (type == 'blur' || type == 'mouseleave') { - _addEventListener.call(this, type, function(...args) { - return; - }, ...rest); } else { - _addEventListener.call(this, type, function(...args) { - return fn.apply(this, args); - }, ...rest); + _addEventListener.call(this, type, fn, ...rest); } } }); @@ -501,7 +495,7 @@ function insertCanvasElements() { document.body.appendChild(pauseButton); let chatButton = createTouchButton("chatButton", "inGame"); chatButton.style.cssText = "top: 0vh; margin: auto; left: 0vh; right: 16vh; width: 8vh; height: 8vh;" - chatButton.addEventListener("touchstart", function(e){ // Trying to figure out why the input isn't focusing + chatButton.addEventListener("touchstart", function(e){ // Trying to figure out why the input isn't focusing canvas.dispatchEvent(new Event("focus", { returnValue: true, srcElement: canvas,