|
|
@ -77,6 +77,7 @@ class GuiScrollPanel: |
|
|
|
|
|
|
|
|
|
|
|
def _handle_mouse_event(self, mouse_event: MouseEvent, bounds: rl.Rectangle, content: rl.Rectangle): |
|
|
|
def _handle_mouse_event(self, mouse_event: MouseEvent, bounds: rl.Rectangle, content: rl.Rectangle): |
|
|
|
if self._scroll_state == ScrollState.IDLE: |
|
|
|
if self._scroll_state == ScrollState.IDLE: |
|
|
|
|
|
|
|
if rl.check_collision_point_rec(mouse_event.pos, bounds): |
|
|
|
if mouse_event.left_pressed: |
|
|
|
if mouse_event.left_pressed: |
|
|
|
self._start_mouse_y = mouse_event.pos.y |
|
|
|
self._start_mouse_y = mouse_event.pos.y |
|
|
|
# Interrupt scrolling with new drag |
|
|
|
# Interrupt scrolling with new drag |
|
|
|