mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 15:04:42 +00:00
Fix list scrolling performance
This commit is contained in:
@@ -493,8 +493,6 @@ paginated_multi_select() {
|
|||||||
# Main interaction loop
|
# Main interaction loop
|
||||||
while true; do
|
while true; do
|
||||||
draw_menu
|
draw_menu
|
||||||
# Drain any pending input to prevent mouse wheel scroll issues
|
|
||||||
drain_pending_input
|
|
||||||
local key
|
local key
|
||||||
key=$(read_key)
|
key=$(read_key)
|
||||||
|
|
||||||
@@ -698,6 +696,10 @@ paginated_multi_select() {
|
|||||||
# Removed help screen, users can explore the interface
|
# Removed help screen, users can explore the interface
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ batch_uninstall_applications() {
|
|||||||
local -a app_details=()
|
local -a app_details=()
|
||||||
local -a dock_cleanup_paths=()
|
local -a dock_cleanup_paths=()
|
||||||
|
|
||||||
echo ""
|
|
||||||
# Silent analysis without spinner output (avoid visual flicker)
|
# Silent analysis without spinner output (avoid visual flicker)
|
||||||
for selected_app in "${selected_apps[@]}"; do
|
for selected_app in "${selected_apps[@]}"; do
|
||||||
[[ -z "$selected_app" ]] && continue
|
[[ -z "$selected_app" ]] && continue
|
||||||
@@ -94,6 +93,7 @@ batch_uninstall_applications() {
|
|||||||
local size_display=$(bytes_to_human "$((total_estimated_size * 1024))")
|
local size_display=$(bytes_to_human "$((total_estimated_size * 1024))")
|
||||||
|
|
||||||
# Display detailed file list for each app before confirmation
|
# Display detailed file list for each app before confirmation
|
||||||
|
echo ""
|
||||||
echo -e "${PURPLE}Files to be removed:${NC}"
|
echo -e "${PURPLE}Files to be removed:${NC}"
|
||||||
echo ""
|
echo ""
|
||||||
for detail in "${app_details[@]}"; do
|
for detail in "${app_details[@]}"; do
|
||||||
|
|||||||
6
mole
6
mole
@@ -559,9 +559,6 @@ interactive_main_menu() {
|
|||||||
first_draw=false
|
first_draw=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Drain any pending input to prevent touchpad scroll issues
|
|
||||||
drain_pending_input
|
|
||||||
|
|
||||||
local key
|
local key
|
||||||
if ! key=$(read_key); then
|
if ! key=$(read_key); then
|
||||||
continue
|
continue
|
||||||
@@ -609,6 +606,9 @@ interactive_main_menu() {
|
|||||||
;;
|
;;
|
||||||
"QUIT") cleanup_and_exit ;;
|
"QUIT") cleanup_and_exit ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Drain any accumulated input after processing (e.g., touchpad scroll events)
|
||||||
|
drain_pending_input
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user