File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -504,7 +504,8 @@ func (gui *Gui) SetKeybinding(binding *types.Binding) error {
504
504
func (gui * Gui ) SetMouseKeybinding (binding * gocui.ViewMouseBinding ) error {
505
505
baseHandler := binding .Handler
506
506
newHandler := func (opts gocui.ViewMouseBindingOpts ) error {
507
- if gui .helpers .Confirmation .IsPopupPanelFocused () && gui .currentViewName () != binding .ViewName {
507
+ if gui .helpers .Confirmation .IsPopupPanelFocused () && gui .currentViewName () != binding .ViewName &&
508
+ ! gocui .IsMouseScrollKey (opts .Key ) {
508
509
// we ignore click events on views that aren't popup panels, when a popup panel is focused.
509
510
// Unless both the current view and the clicked-on view are either commit message or commit
510
511
// description, because we want to allow switching between those two views by clicking.
You can’t perform that action at this time.
0 commit comments