Skip to content

Commit

Permalink
Support tangentialPressure and twist fields of pointer events (#13374)
Browse files Browse the repository at this point in the history
While working on facebook/flow#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 #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`.
  • Loading branch information
motiz88 authored and philipp-spiess committed Aug 12, 2018
1 parent 725e499 commit ae855ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-dom/src/events/SyntheticPointerEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit ae855ce

Please sign in to comment.