Skip to content

Commit 47bd71b

Browse files
committed
fix: 🐛 linting
1 parent e2b0df4 commit 47bd71b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/pinch/pinch.logic.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const getTouchCenter = (event: TouchEvent) => {
1818
let totalX = 0;
1919
let totalY = 0;
2020
// Sum up the positions of all touches
21-
for (let i = 0; i < 2; i++) {
21+
for (let i = 0; i < 2; i += 1) {
2222
totalX += event.touches[i].clientX;
2323
totalY += event.touches[i].clientY;
2424
}
@@ -75,7 +75,7 @@ export const handlePinchZoom = (
7575
const panX = center.x - (contextInstance.pinchLastCenterX || 0);
7676
const panY = center.y - (contextInstance.pinchLastCenterY || 0);
7777

78-
if (newScale === scale && 0 == panX && 0 == panY) return;
78+
if (newScale === scale && panX === 0 && panY === 0) return;
7979

8080
contextInstance.pinchLastCenterX = center.x;
8181
contextInstance.pinchLastCenterY = center.y;

0 commit comments

Comments
 (0)