Skip to content

Commit

Permalink
[Flare] Fix nativeEvent.x/y for older browsers (facebook#15820)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm authored Jun 4, 2019
1 parent 2534c0c commit 8d4fb13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-events/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function isEventPositionWithinTouchHitTarget(
const nativeEvent: any = event.nativeEvent;
return context.isPositionWithinTouchHitTarget(
// x and y can be doubles, so ensure they are integers
parseInt(nativeEvent.x, 10),
parseInt(nativeEvent.y, 10),
parseInt(nativeEvent.clientX, 10),
parseInt(nativeEvent.clientY, 10),
);
}

0 comments on commit 8d4fb13

Please sign in to comment.