mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Support tangentialPressure and twist fields of pointer events (#13374)
While working on https://github.com/facebook/flow/pull/6728 I noticed React's recently-added `SyntheticPointerEvent` was missing the [`tangentialPressure`](https://www.w3.org/TR/pointerevents/#dom-pointerevent-tangentialpressure) and [`twist`](https://www.w3.org/TR/pointerevents/#dom-pointerevent-twist) fields. I couldn't find any reason for their omission in https://github.com/facebook/react/pull/12507 (nor in the spec) so I assume they were meant to be included, like the rest of `PointerEvent`. This PR adds these two fields to `SyntheticPointerEvent`.
This commit is contained in:
1 parent
725e499cfb
commit
ae855cec22
1 file changed
+2
@@ -16,8 +16,10 @@ const SyntheticPointerEvent = SyntheticMouseEvent.extend({
|
||||
width: null,
|
||||
height: null,
|
||||
pressure: null,
|
||||
tangentialPressure: null,
|
||||
tiltX: null,
|
||||
tiltY: null,
|
||||
twist: null,
|
||||
pointerType: null,
|
||||
isPrimary: null,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user