diff --git a/src/lib/litegraph/src/LGraphCanvas.ts b/src/lib/litegraph/src/LGraphCanvas.ts index 0b70aab815..a92bf5f52e 100644 --- a/src/lib/litegraph/src/LGraphCanvas.ts +++ b/src/lib/litegraph/src/LGraphCanvas.ts @@ -2024,7 +2024,11 @@ export class LGraphCanvas implements CustomEventDispatcher // Assertions: removing nullish is fine. // Note: capture flag must match addEventListener for removal to work - canvas.removeEventListener('pointercancel', this._mousecancel_callback!, true) + canvas.removeEventListener( + 'pointercancel', + this._mousecancel_callback!, + true + ) canvas.removeEventListener('pointerout', this._mouseout_callback!) canvas.removeEventListener('pointermove', this._mousemove_callback!) canvas.removeEventListener('pointerup', this._mouseup_callback!, true)