This commit is contained in:
tshirtman 2014-02-08 20:01:14 +01:00
parent 8ba783611b
commit 225288c932
1 changed files with 2 additions and 2 deletions

View File

@ -155,12 +155,12 @@ class PageLayout(Layout):
if touch.grab_current == self:
if (
touch.ud['page'] == 'previous' and
abs(touch.sx - touch.osx) > self.swipe_threshold
abs(touch.x - touch.ox) / self.width > self.swipe_threshold
):
self.page -= 1
elif (
touch.ud['page'] == 'next' and
abs(touch.sx - touch.osx) > self.swipe_threshold
abs(touch.x - touch.ox) / self.width > self.swipe_threshold
):
self.page += 1
else: