Add offset coordinates to mouse events on TUI and desktop.

This commit is contained in:
Reinis Mazeiks committed 2022-05-04 16:42:14 +03:00
1 parent 96c178f91f
commit d84d414170
3 files changed
+14

No files matched your search

+4
View File
@@ -409,6 +409,8 @@ export function serialize_event(event) {
clientY,
ctrlKey,
metaKey,
offsetX,
offsetY,
pageX,
pageY,
screenX,
@@ -423,6 +425,8 @@ export function serialize_event(event) {
client_y: clientY,
ctrl_key: ctrlKey,
meta_key: metaKey,
offset_x: offsetX,
offset_y: offsetY,
page_x: pageX,
page_y: pageY,
screen_x: screenX,