Skip to content

Commit b933f53

Browse files
committed
chore(camera): reverse drag-to-zoom direction
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent a108abe commit b933f53

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/com/getcode/view/main/camera/CodeScanner.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ private fun setupInteractionControls(
291291
distanceY: Float
292292
): Boolean {
293293
if (!shouldIgnoreScroll) {
294-
accumulatedDelta += distanceY
294+
accumulatedDelta -= distanceY
295295

296296
val deltaZoom = accumulatedDelta / 1000f
297297
val maxZoom = cameraInfo.zoomState.value?.maxZoomRatio ?: 1f
@@ -351,4 +351,4 @@ private fun animateZoomReset(cameraInfo: CameraInfo, cameraControl: CameraContro
351351
}
352352
}
353353
})
354-
}
354+
}

0 commit comments

Comments
 (0)