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.
This commit is contained in:
Shan M
2022-01-16 14:26:28 +03:00
committed by GitHub
parent 376f6434e8
commit fd5e8610da

View File

@@ -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;