Skip to content

Commit

Permalink
fix(🐛): fix bug pinchGestureHandler bug (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored May 10, 2020
1 parent 049efdc commit 9d123c9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/core/src/Gesture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,16 +264,19 @@ export const panGestureHandler = () => {

export const pinchGestureHandler = () => {
const focal = vec.create(0, 0);
const rotation = new Value(0);
const scale = new Value(1);
const numberOfPointers = new Value(0);
const state = new Value(State.UNDETERMINED);
const gestureHandler = onGestureEvent({
numberOfPointers,
focalX: focal.x,
focalY: focal.y,
rotation,
scale,
state,
});
return {
rotation,
numberOfPointers,
scale,
state,
gestureHandler,
focal,
Expand Down

0 comments on commit 9d123c9

Please sign in to comment.