From 558e764b593a248139d025de51bf0ca28ea67a5d Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 13 Dec 2022 10:15:37 +0100 Subject: [PATCH] fix #2674, draw lines on the proper place in the foss editor --- .../simplemobiletools/gallery/pro/views/EditorDrawCanvas.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/views/EditorDrawCanvas.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/views/EditorDrawCanvas.kt index f9187cb20..2220ef840 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/views/EditorDrawCanvas.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/views/EditorDrawCanvas.kt @@ -55,8 +55,8 @@ class EditorDrawCanvas(context: Context, attrs: AttributeSet) : View(context, at } override fun onTouchEvent(event: MotionEvent): Boolean { - val x = event.rawX - val y = event.rawY + val x = event.x + val y = event.y when (event.action and MotionEvent.ACTION_MASK) { MotionEvent.ACTION_DOWN -> {