Skip to content

Commit fd5e861

Browse files
authored
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.
1 parent 376f643 commit fd5e861

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/litegraph.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7481,8 +7481,8 @@ LGraphNode.prototype.executeAction = function(action)
74817481
clientY_rel = e.clientY;
74827482
}
74837483

7484-
e.deltaX = clientX_rel - this.last_mouse_position[0];
7485-
e.deltaY = clientY_rel- this.last_mouse_position[1];
7484+
// e.deltaX = clientX_rel - this.last_mouse_position[0];
7485+
// e.deltaY = clientY_rel- this.last_mouse_position[1];
74867486

74877487
this.last_mouse_position[0] = clientX_rel;
74887488
this.last_mouse_position[1] = clientY_rel;

0 commit comments

Comments
 (0)