Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PointerEvent clientX and clientY are long instead of double in Safari IOS #380

Open
ystreibel opened this issue Mar 20, 2019 · 0 comments
Open

Comments

@ystreibel
Copy link

@ystreibel ystreibel commented Mar 20, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.