1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-07 02:25:40 +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

6
mole
View File

@@ -559,9 +559,6 @@ interactive_main_menu() {
first_draw=false
fi
# Drain any pending input to prevent touchpad scroll issues
drain_pending_input
local key
if ! key=$(read_key); then
continue
@@ -609,6 +606,9 @@ interactive_main_menu() {
;;
"QUIT") cleanup_and_exit ;;
esac
# Drain any accumulated input after processing (e.g., touchpad scroll events)
drain_pending_input
done
}