You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Round down any canvas-relative mouse event coordinates (fixes SAFE_HEAP asserts) (#21429)
When using a custom target the coordinates may be doubles, which causes SAFE_HEAP to assert. These are truncated to avoid this (which is what happens anyway, only now it's explicit).
Copy file name to clipboardExpand all lines: site/source/docs/api_reference/html5.h.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -419,13 +419,13 @@ Struct
419
419
.. c:member::long targetX
420
420
long targetY
421
421
422
-
These fields give the mouse coordinates mapped relative to the coordinate space of the target DOM element receiving the input events (Emscripten-specific extension).
422
+
These fields give the mouse coordinates mapped relative to the coordinate space of the target DOM element receiving the input events (Emscripten-specific extension; coordinates are rounded down to the nearest integer).
423
423
424
424
425
425
.. c:member::long canvasX
426
426
long canvasY
427
427
428
-
These fields give the mouse coordinates mapped to the Emscripten canvas client area (Emscripten-specific extension).
428
+
These fields give the mouse coordinates mapped to the Emscripten canvas client area (Emscripten-specific extension; coordinates are rounded down the nearest integer).
0 commit comments