mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-10 17:10:50 +01:00
fix #2674, draw lines on the proper place in the foss editor
This commit is contained in:
parent
e767b117c5
commit
558e764b59
@ -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 -> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user