From fd5e8610da167ead93e6dce4a289c25c91abfa7e Mon Sep 17 00:00:00 2001 From: Shan M Date: Sun, 16 Jan 2022 14:26:28 +0300 Subject: [PATCH] Shouldn't update Event.deltaX as it is read-only property As far as I can tell removing those lines doesn't have any issues. It solves typescripts error for e.deltaX having only getter. --- src/litegraph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/litegraph.js b/src/litegraph.js index 64b6f88c9..3f0afa0a9 100644 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -7481,8 +7481,8 @@ LGraphNode.prototype.executeAction = function(action) clientY_rel = e.clientY; } - e.deltaX = clientX_rel - this.last_mouse_position[0]; - e.deltaY = clientY_rel- this.last_mouse_position[1]; + // e.deltaX = clientX_rel - this.last_mouse_position[0]; + // e.deltaY = clientY_rel- this.last_mouse_position[1]; this.last_mouse_position[0] = clientX_rel; this.last_mouse_position[1] = clientY_rel;