* update _scroll_x_mouse and _scroll_y_mouse to fix scrollview jumping

This commit is contained in:
Ryan Pessa 2013-04-03 13:40:48 -05:00
parent ba77aaf035
commit 507171f288
1 changed files with 2 additions and 0 deletions

View File

@ -176,8 +176,10 @@ class ScrollView(StencilView):
if self.do_scroll_x: if self.do_scroll_x:
self.scroll_x = min(1, max(0, self.scroll_x)) self.scroll_x = min(1, max(0, self.scroll_x))
self._scroll_x_mouse = self.scroll_x
if self.do_scroll_y: if self.do_scroll_y:
self.scroll_y = min(1, max(0, self.scroll_y)) self.scroll_y = min(1, max(0, self.scroll_y))
self._scroll_y_mouse = self.scroll_y
# update from size_hint # update from size_hint
if vp.size_hint_x is not None: if vp.size_hint_x is not None: