mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Allow scrolling background views with the mouse wheel when a popup is showing
I see little reason to suppress this; the check was really only for click events, not wheel events.
This commit is contained in:
parent
f6c20f2745
commit
8ad2637715
|
|
@ -504,7 +504,8 @@ func (gui *Gui) SetKeybinding(binding *types.Binding) error {
|
|||
func (gui *Gui) SetMouseKeybinding(binding *gocui.ViewMouseBinding) error {
|
||||
baseHandler := binding.Handler
|
||||
newHandler := func(opts gocui.ViewMouseBindingOpts) error {
|
||||
if gui.helpers.Confirmation.IsPopupPanelFocused() && gui.currentViewName() != binding.ViewName {
|
||||
if gui.helpers.Confirmation.IsPopupPanelFocused() && gui.currentViewName() != binding.ViewName &&
|
||||
!gocui.IsMouseScrollKey(opts.Key) {
|
||||
// we ignore click events on views that aren't popup panels, when a popup panel is focused.
|
||||
// Unless both the current view and the clicked-on view are either commit message or commit
|
||||
// description, because we want to allow switching between those two views by clicking.
|
||||
|
|
|
|||
Loading…
Reference in a new issue