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:
Moti Zilberman authored and Philipp Spieß committed 2018-08-12 15:16:23 +02:00
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,
});