mirror of https://github.com/kivy/kivy.git
fix: #1871
This commit is contained in:
parent
8ba783611b
commit
225288c932
|
@ -155,12 +155,12 @@ class PageLayout(Layout):
|
||||||
if touch.grab_current == self:
|
if touch.grab_current == self:
|
||||||
if (
|
if (
|
||||||
touch.ud['page'] == 'previous' and
|
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
|
self.page -= 1
|
||||||
elif (
|
elif (
|
||||||
touch.ud['page'] == 'next' and
|
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
|
self.page += 1
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue