pull/34/head
parent
3fe160100f
commit
2941f0ee37
@ -0,0 +1,20 @@ |
||||
package io.legado.app.ui.widget.page.delegate |
||||
|
||||
import android.view.MotionEvent |
||||
|
||||
fun MotionEvent.toAction(action: Int): MotionEvent { |
||||
return MotionEvent.obtain( |
||||
downTime, |
||||
eventTime, |
||||
action, |
||||
x, |
||||
y, |
||||
pressure, |
||||
size, |
||||
metaState, |
||||
xPrecision, |
||||
yPrecision, |
||||
deviceId, |
||||
edgeFlags |
||||
) |
||||
} |
Loading…
Reference in new issue