Skip to content

Commit 27d3be7

Browse files
committed
Fixed longTouch() args mismatch
1 parent a65532c commit 27d3be7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/com/dtmilano/android/viewclient.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@author: Diego Torres Milano
1919
'''
2020

21-
__version__ = '10.3.0'
21+
__version__ = '10.3.1'
2222

2323
import sys
2424
import warnings
@@ -928,8 +928,9 @@ def longTouch(self, duration=2000):
928928
@param duration: duration in ms
929929
'''
930930

931-
c = self.getCenter()
932-
self.device.longTouch(c, c, duration, 1)
931+
(x, y) = self.getCenter()
932+
# FIXME: get orientation
933+
self.device.longTouch(x, y, duration, orientation=-1)
933934

934935
def allPossibleNamesWithColon(self, name):
935936
l = []

0 commit comments

Comments
 (0)