Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPointerEvent clientX and clientY are long instead of double in Safari IOS #380
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
For PointerEvent properties clientX and clientY values are long integer instead of double in Safari IOS.
PEP as a Polyfill should handle this ? No ?
PointerEvent clientX and clientY came from MouseEvent inheritance.
Mozilla Developer Network (MDN) docs definitions:
clientX
Pointer.clientXEvent => MouseEvent.clientX Read only
The X coordinate of the mouse pointer in local (DOM content) coordinates.
The clientX read-only property of the MouseEvent interface provides the horizontal coordinate within the application’s client area at which the event occurred (as opposed to the coordinate within the page).
A double floating point value, as redefined by the CSSOM View Module. Originally, this property was defined as a long integer. See the “Browser compatibility” section for details.
clientY
PointerEvent.clientY => MouseEvent.clientY Read only
The Y coordinate of the mouse pointer in local (DOM content) coordinates.
The clientY read-only property of the MouseEvent interface provides the vertical coordinate within the application’s client area at which the event occurred (as opposed to the coordinate within the page).
A double floating point value, as redefined by the CSSOM View Module. Originally, this property was defined as a long integer. See the “Browser compatibility” section for details.