def on_mouse_scroll(self, x, y, scroll_x, scroll_y):
        self._scrolled += abs(scroll_x)
        self.set_knob_pos(self._knob_pos() - float(scroll_x) / self.width)
        self.re_layout()
        return True
dataset/ETHPy150Open jorgecarleitao/pyglet-gui/pyglet_gui/scrollbars.py/HScrollbar.on_mouse_scroll/original