mirror of
https://github.com/FlamedDogo99/EaglerMobile.git
synced 2024-12-21 23:04:16 -08:00
Removed dumb fix
This commit is contained in:
parent
60fe827c13
commit
bd26c5d2db
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user