fix #2674, draw lines on the proper place in the foss editor
This commit is contained in:
parent
e767b117c5
commit
558e764b59
1 changed files with 2 additions and 2 deletions
|
@ -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 -> {
|
||||
|
|
Loading…
Reference in a new issue