Skip to content

Commit ab9ca1a

Browse files
authored
Merge pull request jagenjo#287 from sha-N/patch-6
Shouldn't update Event.deltaX as it is read-only property
2 parents 8ebbcfa + fd5e861 commit ab9ca1a

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)