Skip to content

Commit 4c9d6d0

Browse files
author
awkasem
committed
UiScrollable with landscap support
1 parent ddb99de commit 4c9d6d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/com/dtmilano/android/viewclient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ def flingBackward(self):
11581158
if DEBUG:
11591159
print >> sys.stderr, "flingBackward: view=", self.view.__smallStr__(), self.view.getPositionAndSize()
11601160
print >> sys.stderr, "self.view.device.drag(%s, %s, %s, %s)" % (s, e, self.duration, self.steps)
1161-
self.view.device.drag(s, e, self.duration, self.steps, 0)
1161+
self.view.device.drag(s, e, self.duration, self.steps, self.view.device.display['orientation'])
11621162

11631163
def flingForward(self):
11641164
if self.vertical:
@@ -1169,7 +1169,7 @@ def flingForward(self):
11691169
if DEBUG:
11701170
print >> sys.stderr, "flingForward: view=", self.view.__smallStr__(), self.view.getPositionAndSize()
11711171
print >> sys.stderr, "self.view.device.drag(%s, %s, %s, %s)" % (s, e, self.duration, self.steps)
1172-
self.view.device.drag(s, e, self.duration, self.steps, 0)
1172+
self.view.device.drag(s, e, self.duration, self.steps, self.view.device.display['orientation'])
11731173

11741174
def flingToBeginning(self, maxSwipes):
11751175
if self.vertical:

0 commit comments

Comments
 (0)