Skip to content

Commit e6528ef

Browse files
author
Snapify Developer
committed
fix: syntax error in PicturePreviewDialog
1 parent a5730da commit e6528ef

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/src/main/kotlin/ro/snapify/ui/components/PicturePreviewDialog.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,13 +367,13 @@ fun PicturePreviewDialog(
367367
// Bottom bar
368368
if (controlsVisible) {
369369
PictureControls(
370-
onZoomOut = { imageScale = (imageScale / 1.2f).coerceAtLeast(0.5f) },
371-
onZoomIn = { imageScale = (imageScale * 1.2f).coerceAtMost(3f) },
372-
onRotate = { imageRotation = (imageRotation + 90f) % 360f },
373-
onReset = {
374370
onZoomOut = { imageScale = (imageScale / 1.2f).coerceAtLeast(1f) },
375371
onZoomIn = { imageScale = (imageScale * 1.2f).coerceAtMost(3f) },
376372
onRotate = { imageRotation = (imageRotation + 90f) % 360f },
373+
onReset = {
374+
imageScale = 1f
375+
imageRotation = 0f
376+
imagePanX = 0f
377377
imagePanY = 0f
378378
windowOffsetX = 0f
379379
windowOffsetY = 0f

0 commit comments

Comments
 (0)