1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-10 17:49:18 +00:00

Fix list scrolling performance

This commit is contained in:
Tw93
2025-11-21 10:44:09 +08:00
parent 75ed271056
commit 7ef786a9e2
3 changed files with 8 additions and 6 deletions

View File

@@ -493,8 +493,6 @@ paginated_multi_select() {
# Main interaction loop
while true; do
draw_menu
# Drain any pending input to prevent mouse wheel scroll issues
drain_pending_input
local key
key=$(read_key)
@@ -698,6 +696,10 @@ paginated_multi_select() {
# Removed help screen, users can explore the interface
;;
esac
# Drain any accumulated input after processing (e.g., mouse wheel events)
# This prevents buffered events from causing jumps, without blocking keyboard input
drain_pending_input
done
}