Merge pull request #287 from sha-N/patch-6

Shouldn't update Event.deltaX as it is read-only property
This commit is contained in:
Javi Agenjo
2022-10-24 14:59:59 +02:00
committed by GitHub

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;