Skip to content

Commit b8d6a3d

Browse files
committed
fix: positions in dpi
1 parent 5d03a7d commit b8d6a3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gesturehandler.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ export abstract class Handler<T extends com.swmansion.gesturehandler.GestureHand
188188
const numberOfPointers = handler.getNumberOfPointers();
189189
const positions = [];
190190
for (let index = 0; index < numberOfPointers; index++) {
191-
positions.push(handler.getXAtIndex(index));
192-
positions.push(handler.getYAtIndex(index));
191+
positions.push(layout.toDeviceIndependentPixels(handler.getXAtIndex(index)));
192+
positions.push(layout.toDeviceIndependentPixels(handler.getYAtIndex(index)));
193193
}
194194
return {
195195
// x: layout.toDeviceIndependentPixels(handler.getX()),

0 commit comments

Comments
 (0)