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 -> {