def on_touch_move(self, touch):
        """Move the scrollbar to the touch, and update my ``scroll``
        accordingly.

        """
        if not self.scrolling or 'bar' not in self.ids:
            touch.ungrab(self)
            return
        touch.push()
        touch.apply_transform_2d(self.parent.to_local)
        touch.apply_transform_2d(self.to_local)
        if self.orientation == 'horizontal':
            hint_right_of_bar = (touch.x - self.ids.bar.x) / self.width
            hint_correction = hint_right_of_bar - self._start_bar_touch_hint[0]
            self.scroll += hint_correction
        else:  # self.orientation == 'vertical'
            hint_above_bar = (touch.y - self.ids.bar.y) / self.height
            hint_correction = hint_above_bar - self._start_bar_touch_hint[1]
            self.scroll += hint_correction
        touch.pop()
def on_touch_move ( self , touch ) : if not self . scrolling or 'bar' not in self . ids : touch . ungrab ( self ) return touch . push ( ) touch . apply_transform_2d ( self . parent . to_local ) touch . apply_transform_2d ( self . to_local ) if self . orientation == 'horizontal' : hint_right_of_bar = ( touch . x - self . ids . bar . x ) / self . width hint_correction = hint_right_of_bar - self . _start_bar_touch_hint [ 0 ] self . scroll += hint_correction else : hint_above_bar = ( touch . y - self . ids . bar . y ) / self . height hint_correction = hint_above_bar - self . _start_bar_touch_hint [ 1 ] self . scroll += hint_correction touch . pop ( )
Move the scrollbar to the touch, and update my ``scroll``
        accordingly.