From c981b930840e7426285cbf3fac0aac2369de7a50 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Sat, 3 Aug 2024 23:11:29 +1000 Subject: [PATCH] Fix events not properly removed (#46) Minor fix: someone forgot to finish their copy/paste, apparently. --- src/litegraph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/litegraph.js b/src/litegraph.js index 8e4063d053..854e542a37 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -5689,8 +5689,8 @@ LGraphNode.prototype.executeAction = function(action) var ref_window = this.getCanvasWindow(); var document = ref_window.document; - LiteGraph.pointerListenerRemove(this.canvas,"move", this._mousedown_callback); - LiteGraph.pointerListenerRemove(this.canvas,"up", this._mousedown_callback); + LiteGraph.pointerListenerRemove(this.canvas,"move", this._mousemove_callback); + LiteGraph.pointerListenerRemove(this.canvas,"up", this._mouseup_callback); LiteGraph.pointerListenerRemove(this.canvas,"down", this._mousedown_callback); this.canvas.removeEventListener( "mousewheel",