Skip to content

Commit

Permalink
fix(🐛): Fix bug in pinch and rotation gesture handler (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored May 10, 2020
1 parent 9d123c9 commit 9ad5bdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/Gesture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export const panGestureHandler = () => {
};

export const pinchGestureHandler = () => {
const focal = vec.create(0, 0);
const focal = vec.createValue(0, 0);
const scale = new Value(1);
const numberOfPointers = new Value(0);
const state = new Value(State.UNDETERMINED);
Expand All @@ -284,7 +284,7 @@ export const pinchGestureHandler = () => {
};

export const rotationGestureHandler = () => {
const anchor = vec.create(0, 0);
const anchor = vec.createValue(0, 0);
const rotation = new Value(0);
const state = new Value(State.UNDETERMINED);
const gestureHandler = onGestureEvent({
Expand Down

0 comments on commit 9ad5bdd

Please sign in to comment.