Merge pull request #2362 from kivy/reapply-scrollview-fix

* update _scroll_x_mouse and _scroll_y_mouse to fix scrollview jumping
This commit is contained in:
Akshay Arora 2014-07-23 13:02:27 +05:30
commit 02f18cb5ef
1 changed files with 2 additions and 0 deletions

View File

@ -616,8 +616,10 @@ class ScrollView(StencilView):
if self.do_scroll_x and self.effect_x and not ud['in_bar_x']: if self.do_scroll_x and self.effect_x and not ud['in_bar_x']:
self.effect_x.start(touch.x) self.effect_x.start(touch.x)
self._scroll_x_mouse = self.scroll_x
if self.do_scroll_y and self.effect_y and not ud['in_bar_y']: if self.do_scroll_y and self.effect_y and not ud['in_bar_y']:
self.effect_y.start(touch.y) self.effect_y.start(touch.y)
self._scroll_y_mouse = self.scroll_y
if (ud.get('in_bar_x', False) or ud.get('in_bar_y', False)): if (ud.get('in_bar_x', False) or ud.get('in_bar_y', False)):
return return