Fix events not properly removed (#46)

Minor fix: someone forgot to finish their copy/paste, apparently.
This commit is contained in:
filtered
2024-08-03 23:11:29 +10:00
committed by GitHub
parent dbb174b083
commit c981b93084

View File

@@ -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",