fix #2674, draw lines on the proper place in the foss editor

This commit is contained in:
tibbi 2022-12-13 10:15:37 +01:00
parent e767b117c5
commit 558e764b59

View file

@ -55,8 +55,8 @@ class EditorDrawCanvas(context: Context, attrs: AttributeSet) : View(context, at
} }
override fun onTouchEvent(event: MotionEvent): Boolean { override fun onTouchEvent(event: MotionEvent): Boolean {
val x = event.rawX val x = event.x
val y = event.rawY val y = event.y
when (event.action and MotionEvent.ACTION_MASK) { when (event.action and MotionEvent.ACTION_MASK) {
MotionEvent.ACTION_DOWN -> { MotionEvent.ACTION_DOWN -> {