mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-04 22:34:39 +02:00
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.
This commit is contained in:
parent
7d486cabeb
commit
e1efbfc842
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user