Skip to content

Commit

Permalink
fix: ignore mouse not being set at the correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
abenz1267 committed Jul 13, 2024
1 parent bc5f0dd commit 76a7aac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/interactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,10 @@ const charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
var cancel context.CancelFunc

func process() {
if cfg.IgnoreMouse {
ui.list.SetCanTarget(false)
}

ui.spinner.SetCSSClasses([]string{"visible"})

if cfg.EnableTypeahead {
Expand Down Expand Up @@ -580,10 +584,6 @@ var handlerPool = sync.Pool{
}

func processAsync(ctx context.Context) {
if cfg.IgnoreMouse {
ui.list.SetCanTarget(false)
}

handler := handlerPool.Get().(*Handler)
defer func() {
handlerPool.Put(handler)
Expand Down

0 comments on commit 76a7aac

Please sign in to comment.