From 5c075215212e03b4fd11f248bf7b002f94c29045 Mon Sep 17 00:00:00 2001 From: darthpaul Date: Thu, 1 Dec 2022 14:29:39 +0000 Subject: [PATCH] use raw coordinates for focus circle --- .../simplemobiletools/camera/implementations/CameraXPreview.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/implementations/CameraXPreview.kt b/app/src/main/kotlin/com/simplemobiletools/camera/implementations/CameraXPreview.kt index 23aef8b2..fdee5c25 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/implementations/CameraXPreview.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/implementations/CameraXPreview.kt @@ -327,7 +327,7 @@ class CameraXPreview( .disableAutoCancel() .build() camera?.cameraControl?.startFocusAndMetering(focusMeteringAction) - listener.onFocusCamera(xPos, yPos) + listener.onFocusCamera(event.rawX, event.rawY) true } ?: false }