on main help sign in
chore: small scroll fix
commitda17d912d1333deebffa00998c77fc1889c3d126 authorKujtim Hoxha <kujtimii.h@gmail.com> dateMon 28 Jul 2025, 18:02 (1 year ago) parentdf1e13f
1 file changed+7
internal/tui/tui.go+7
internal/tui/tui.go+7
@@ -253,6 +253,13 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
253253 case tea.KeyPressMsg:
254254 return a, a.handleKeyPressMsg(msg)
255255
256+ case tea.MouseWheelMsg:
257+ if !a.dialog.HasDialogs() {
258+ updated, pageCmd := a.pages[a.currentPage].Update(msg)
259+ a.pages[a.currentPage] = updated.(util.Model)
260+ cmds = append(cmds, pageCmd)
261+ }
262+ return a, tea.Batch(cmds...)
256263 case tea.PasteMsg:
257264 if a.dialog.HasDialogs() {
258265 u, dialogCmd := a.dialog.Update(msg)