@samitouri / QOS-React-2 / commits / ae855cec22

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`.

Moti Zilberman committed Aug 12, 2018 at 14:16 UTC ae855cec2207a1097dd2115dac96340d1261726f
1 file changed +2
packages/react-dom/src/events/SyntheticPointerEvent.js
+2
@@ -16,8 +16,10 @@ const SyntheticPointerEvent = SyntheticMouseEvent.extend({
16 width: null,
17 height: null,
18 pressure: null,
19 + tangentialPressure: null,
20 tiltX: null,
21 tiltY: null,
22 + twist: null,
23 pointerType: null,
24 isPrimary: null,
25 });