diff --git a/kivy/uix/scrollview.py b/kivy/uix/scrollview.py index 3216d81e6..77ca88e29 100644 --- a/kivy/uix/scrollview.py +++ b/kivy/uix/scrollview.py @@ -895,9 +895,10 @@ class ScrollView(StencilView): and self.effect_x: width = self.width if touch.ud.get('in_bar_x', False): - dx = touch.dx / float(width - width * self.hbar[1]) - self.scroll_x = min(max(self.scroll_x + dx, 0.), 1.) - self._trigger_update_from_scroll() + if self.hbar[1] != 1: + dx = touch.dx / float(width - width * self.hbar[1]) + self.scroll_x = min(max(self.scroll_x + dx, 0.), 1.) + self._trigger_update_from_scroll() else: if self.scroll_type != ['bars']: self.effect_x.update(touch.x)