-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Area: MouseNeeds: PM DesignNew feature or requestNew feature or requestPartner: FacebookWorkstream: Component ParityClose the parity gap between RNW and RN for core RN components and their supporting APIs.Close the parity gap between RNW and RN for core RN components and their supporting APIs.enhancement
Milestone
Description
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.
acoates-ms and NickGerleman
Metadata
Metadata
Assignees
Labels
Area: MouseNeeds: PM DesignNew feature or requestNew feature or requestPartner: FacebookWorkstream: Component ParityClose the parity gap between RNW and RN for core RN components and their supporting APIs.Close the parity gap between RNW and RN for core RN components and their supporting APIs.enhancement