mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
32af9e6e8d
Summary: Changelog: [iOS][Internal] - Fix buttons property value for non-hoverable pointers The previous diff ensured that on iOS you could run through the entirety of the non-hoverable pointer event attributes test but that also revealed some failing tests related to the `buttons` property when using a non-hoverable pointer. This diff fixes that by ensuring that we only forward the result of the `buttonMask` to `buttons` when the pointer is a mouse, and assume that it is an emulated left click otherwise. Reviewed By: lunaleaps Differential Revision: D38914239 fbshipit-source-id: c573e934d0e9c0ac2af4945dc5360840ddc87d4d