From e1efbfc842b05a8ee1ea22579e925e2e0ffa6eb0 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 15 Aug 2024 14:31:13 +0200 Subject: [PATCH] Make it possible to scroll the commit description with the mouse wheel It is just unexpected and confusing when it isn't. There's something weird about the cursor position when scrolling it out of view; it will be shown clamped to the visible area of the view (as if it had moved in the opposite direction than the scroll direction), but then when you type something again, or just move the cursor with the arrow keys, the view will jump back to where the cursor really was. This looks confusing, and it might be reason enough not to allow scrolling the view at all. --- pkg/gui/controllers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/gui/controllers.go b/pkg/gui/controllers.go index 24cdd7574..d2f156a90 100644 --- a/pkg/gui/controllers.go +++ b/pkg/gui/controllers.go @@ -354,6 +354,7 @@ func (gui *Gui) resetHelpersAndControllers() { controllers.AttachControllers(gui.State.Contexts.CommitDescription, commitDescriptionController, + verticalScrollControllerFactory.Create(gui.State.Contexts.CommitDescription), ) controllers.AttachControllers(gui.State.Contexts.RemoteBranches,