Skip to content

Support pointer events #12881

@imaus10

Description

@imaus10

Pointer events are currently "unknown event handler properties" in React.

What is the current behavior?

This JS fiddle shows that attaching the onPointerDown event to a div produces this warning in the console:

Warning: Unknown event handler property `onPointerDown`. It will be ignored.
    in div (created by App)
    in App

What is the expected behavior?

Although pointer events are not supported by Apple, they are still useful to developers targeting other platforms. Perhaps a good middle ground would be to allow them, but print a console warning saying they may not work. Happy to put together a PR if someone points me in the right direction!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions