From 0f3faec35daf0d4ecc75967bbaadb26f66ea4917 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 22 Nov 2018 19:39:40 -0500 Subject: [PATCH] Reduce the scroll boundary bounce --- piker/ui/pager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/ui/pager.py b/piker/ui/pager.py index 7ab5bb6e..5b38aa76 100644 --- a/piker/ui/pager.py +++ b/piker/ui/pager.py @@ -184,5 +184,5 @@ class PagerView(ScrollView): _, yscale = self.convert_distance_to_scroll(0, pxs) new = self.scroll_y + (yscale * {'u': 1, 'd': -1}[direction]) # bound to near [0, 1] to avoid "over-scrolling" - limited = max(-0.03, min(new, 1.03)) + limited = max(-0.01, min(new, 1.01)) self.scroll_y = limited