Skip to content

Commit

Permalink
fix: positions in dpi
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed May 12, 2021
1 parent 5d03a7d commit b8d6a3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gesturehandler.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ export abstract class Handler<T extends com.swmansion.gesturehandler.GestureHand
const numberOfPointers = handler.getNumberOfPointers();
const positions = [];
for (let index = 0; index < numberOfPointers; index++) {
positions.push(handler.getXAtIndex(index));
positions.push(handler.getYAtIndex(index));
positions.push(layout.toDeviceIndependentPixels(handler.getXAtIndex(index)));
positions.push(layout.toDeviceIndependentPixels(handler.getYAtIndex(index)));
}
return {
// x: layout.toDeviceIndependentPixels(handler.getX()),
Expand Down

0 comments on commit b8d6a3d

Please sign in to comment.