We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5730da commit e6528efCopy full SHA for e6528ef
1 file changed
app/src/main/kotlin/ro/snapify/ui/components/PicturePreviewDialog.kt
@@ -367,13 +367,13 @@ fun PicturePreviewDialog(
367
// Bottom bar
368
if (controlsVisible) {
369
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 = {
374
onZoomOut = { imageScale = (imageScale / 1.2f).coerceAtLeast(1f) },
375
onZoomIn = { imageScale = (imageScale * 1.2f).coerceAtMost(3f) },
376
onRotate = { imageRotation = (imageRotation + 90f) % 360f },
+ onReset = {
+ imageScale = 1f
+ imageRotation = 0f
+ imagePanX = 0f
377
imagePanY = 0f
378
windowOffsetX = 0f
379
windowOffsetY = 0f
0 commit comments