droidbot icon indicating copy to clipboard operation
droidbot copied to clipboard

device.view_long_touch(x=x, y=y, duration=200) in TouchEvent(UIEvent)

Open chicharitomu14 opened this issue 3 years ago • 1 comments

In this situation, all touch events are performed as long-touch events. Why not using device.view_touch(x, y) here? And device.view_touch(x, y) is not called in the whole project.

droidbot

chicharitomu14 avatar Mar 05 '21 09:03 chicharitomu14

In some apps that I tested, using view_touch couldn't correctly trigger the touch event, while the 200ms-long touch could stably do the trick. I don't know why...

yuanchun-li avatar Mar 26 '21 07:03 yuanchun-li