mirror of https://github.com/kivy/kivy.git
Added a check for horizontal scrolling for sxd for if we are actually scrolling horizontally.
This commit is contained in:
parent
1ae827e881
commit
0080c0de78
|
@ -368,11 +368,12 @@ class ScrollView(StencilView):
|
||||||
sxd = self._scroll_x_mouse - d
|
sxd = self._scroll_x_mouse - d
|
||||||
elif touch.button == 'scrollleft':
|
elif touch.button == 'scrollleft':
|
||||||
sxd = self._scroll_x_mouse + d
|
sxd = self._scroll_x_mouse + d
|
||||||
self._scroll_x_mouse = scroll_x = min(max(sxd, 0), 1)
|
if sxd is not None:
|
||||||
Animation.stop_all(self, 'scroll_x')
|
self._scroll_x_mouse = scroll_x = min(max(sxd, 0), 1)
|
||||||
Animation(scroll_x=scroll_x, d=.3, t='out_quart').start(self)
|
Animation.stop_all(self, 'scroll_x')
|
||||||
Clock.unschedule(self._update_animation)
|
Animation(scroll_x=scroll_x, d=.3, t='out_quart').start(self)
|
||||||
return True
|
Clock.unschedule(self._update_animation)
|
||||||
|
return True
|
||||||
|
|
||||||
self._touch = touch
|
self._touch = touch
|
||||||
uid = self._get_uid()
|
uid = self._get_uid()
|
||||||
|
|
Loading…
Reference in New Issue