From 20f9b7cf892370386deb87353d784a0105c32e63 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 4 May 2026 22:48:38 +0200 Subject: [PATCH] Edit mouse actions Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- internal/ui/model.go | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/internal/ui/model.go b/internal/ui/model.go index ee6f4e6..3acec94 100644 --- a/internal/ui/model.go +++ b/internal/ui/model.go @@ -146,10 +146,21 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case tea.MouseWheelMsg: if m.state == statePopup { - var cmd tea.Cmd - m.actionList, cmd = m.actionList.Update(msg) - return m, cmd + switch msg.Button { + case tea.MouseWheelUp: + m.actionList.CursorUp() + case tea.MouseWheelDown: + m.actionList.CursorDown() + } + } else { + switch msg.Button { + case tea.MouseWheelUp: + m.list.CursorUp() + case tea.MouseWheelDown: + m.list.CursorDown() + } } + return m, nil } if m.state == stateList {