Skip to content

Add button number property to mouse events #6410

Open
@appden

Description

@appden

Proposal: Add button number property to mouse events

Summary

React Native macOS provides the button property (0 for left, 2 for right) here, which comes from the DOM MouseEvent.button API.

On React Native Windows, the mouse events have "non-standard" boolean properties (e.g. isLeftButton, isRightButton, etc.) set here. This proposal is to add button property and hopefully deprecate the others so that code built for both macOS and Windows doesn't need separate checks to detect right clicks for each platform.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions