From f27fcc934b780d27a7cfca1e37e0118426c8a2a9 Mon Sep 17 00:00:00 2001 From: LAX1DUDE Date: Tue, 18 Oct 2022 01:23:56 -0700 Subject: [PATCH] fixed another non-crucial crash report glitch, will compile later --- .../lax1dude/eaglercraft/adapter/EaglerAdapterImpl2.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/teavm/java/net/lax1dude/eaglercraft/adapter/EaglerAdapterImpl2.java b/src/teavm/java/net/lax1dude/eaglercraft/adapter/EaglerAdapterImpl2.java index e0473af..54adcfd 100644 --- a/src/teavm/java/net/lax1dude/eaglercraft/adapter/EaglerAdapterImpl2.java +++ b/src/teavm/java/net/lax1dude/eaglercraft/adapter/EaglerAdapterImpl2.java @@ -493,13 +493,13 @@ public class EaglerAdapterImpl2 { public static final void removeEventHandlers() { try { win.removeEventListener("contextmenu", contextmenu); - win.removeEventListener("mousedown", mousedown); - win.removeEventListener("mouseup", mouseup); - win.removeEventListener("mousemove", mousemove); + canvas.removeEventListener("mousedown", mousedown); + canvas.removeEventListener("mouseup", mouseup); + canvas.removeEventListener("mousemove", mousemove); win.removeEventListener("keydown", keydown); win.removeEventListener("keyup", keyup); win.removeEventListener("keypress", keypress); - win.removeEventListener("wheel", wheel); + canvas.removeEventListener("wheel", wheel); }catch(Throwable t) { } try {