From 171b70542933f83f6f064faefa06ffe449a050d1 Mon Sep 17 00:00:00 2001 From: DanS Date: Sat, 11 Jul 2026 15:51:55 -0500 Subject: [PATCH] feat(wallets): smooth wheel scrolling for the wallet list Adopt the shared ApplySmoothScroll helper (with NoScrollWithMouse) for the ##walletList child, matching the Settings page and the other scroll areas, so the wallet list eases on wheel input instead of jumping. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/ui/windows/wallets_dialog.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/windows/wallets_dialog.h b/src/ui/windows/wallets_dialog.h index 01bbfc7..2c720dc 100644 --- a/src/ui/windows/wallets_dialog.h +++ b/src/ui/windows/wallets_dialog.h @@ -118,8 +118,11 @@ public: float listHFit = listH; if (capped) listHFit = std::max(walRowH, ImGui::GetContentRegionAvail().y - belowH); ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); - ImGui::BeginChild("##walletList", ImVec2(listW, listHFit), false); + // NoScrollWithMouse + ApplySmoothScroll gives the wheel the same eased scrolling as the + // Settings page (ApplySmoothScroll handles the wheel itself, so let it own that input). + ImGui::BeginChild("##walletList", ImVec2(listW, listHFit), false, ImGuiWindowFlags_NoScrollWithMouse); ImGui::PopStyleVar(); + ApplySmoothScroll(); ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); // inter-card gaps are explicit ImDrawList* dl = ImGui::GetWindowDrawList(); const float rowW = ImGui::GetContentRegionAvail().x;