ui: ignore additional fingers in scroll panel (#39141)

This commit is contained in:
Shane Smiskol
2026-11-02 05:27:52 +00:00
committed by firestar5683
parent 7c3bf67791
commit 9c4be6a6c1
+4 -2
View File
@@ -69,8 +69,10 @@ class GuiScrollPanel2:
bounds_size = bounds.width if self._horizontal else bounds.height
for mouse_event in gui_app.mouse_events:
self._handle_mouse_event(mouse_event, bounds, bounds_size, content_size)
self._previous_mouse_event = mouse_event
# ignore additional fingers to avoid jumping
if mouse_event.slot == 0:
self._handle_mouse_event(mouse_event, bounds, bounds_size, content_size)
self._previous_mouse_event = mouse_event
self._update_state(bounds_size, content_size, snap_target)