mirror of https://github.com/kivy/kivy.git
* update _scroll_x_mouse and _scroll_y_mouse to fix scrollview jumping
This commit is contained in:
parent
ba77aaf035
commit
507171f288
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue