mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 20:19:45 +00:00
fix(ui): improve arrow key responsiveness in menu
drain_pending_input was discarding buffered arrow keys during key repeat, causing slow/jerky scrolling and lingering movement after key release.
This commit is contained in:
@@ -628,9 +628,6 @@ paginated_multi_select() {
|
||||
printf "\033[%d;1H" "$((items_per_page + 4))" >&2
|
||||
|
||||
prev_cursor_pos=$cursor_pos
|
||||
|
||||
# Drain pending input for smoother fast scrolling
|
||||
drain_pending_input
|
||||
continue # Skip full redraw
|
||||
elif [[ $top_index -gt 0 ]]; then
|
||||
((top_index--))
|
||||
@@ -669,9 +666,6 @@ paginated_multi_select() {
|
||||
printf "\033[%d;1H" "$((items_per_page + 4))" >&2
|
||||
|
||||
prev_cursor_pos=$cursor_pos
|
||||
|
||||
# Drain pending input for smoother fast scrolling
|
||||
drain_pending_input
|
||||
continue # Skip full redraw
|
||||
elif [[ $((top_index + visible_count)) -lt ${#view_indices[@]} ]]; then
|
||||
((top_index++))
|
||||
|
||||
Reference in New Issue
Block a user