wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Opening the search overlay prevents mouse scrolling in some application content

Open kenchou opened this issue 6 months ago • 0 comments

What Operating System(s) are you seeing this problem on?

macOS

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20240730-082727-56a27e93

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

For me, using search to highlight keywords is very useful for browsing logs. Opening the search overlay prevents mouse scrolling in some application content. eg. neovim, k9s There are no issues in iTerm2.

To Reproduce

  • Open nvim in wezterm
  • Press CMD+f to open the search overlay, input any keyword you want.
  • Scrolling the screen content with the mouse wheel is not working.

Configuration

config.mouse_bindings = { -- like iTerm2: 禁用单击打开链接,使用 CTRL+Click 打开 -- Disable the default click behavior { event = { Up = { streak = 1, button = "Left"} }, mods = "NONE", action = act.DisableDefaultAssignment, }, -- Bind 'Up' event of CTRL-Click to open hyperlinks { event = { Up = { streak = 1, button = 'Left' } }, mods = 'CMD', action = act.OpenLinkAtMouseCursor, }, -- Disable the 'Down' event of CTRL-Click to avoid weird program behaviors { event = { Down = { streak = 1, button = 'Left' } }, mods = 'CMD', action = act.Nop, }, }

Expected Behavior

This issue is not present in iTerm2. I wish the mouse could function properly.

Logs

No response

Anything else?

No response

kenchou avatar Aug 02 '24 08:08 kenchou