Even less bouncy

kivy_mainline_and_py3.8
Tyler Goodlet 2018-12-15 16:38:33 -05:00
parent 07eb8ae5e0
commit 7ed409501d
1 changed files with 1 additions and 1 deletions

View File

@ -184,5 +184,5 @@ class PagerView(ScrollView):
_, yscale = self.convert_distance_to_scroll(0, pxs) _, yscale = self.convert_distance_to_scroll(0, pxs)
new = self.scroll_y + (yscale * {'u': 1, 'd': -1}[direction]) new = self.scroll_y + (yscale * {'u': 1, 'd': -1}[direction])
# bound to near [0, 1] to avoid "over-scrolling" # bound to near [0, 1] to avoid "over-scrolling"
limited = max(-0.01, min(new, 1.01)) limited = max(-0.001, min(new, 1.001))
self.scroll_y = limited self.scroll_y = limited