Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mouse scroll on hovered but unfocused pane #4339

Merged
merged 1 commit into from Jan 22, 2024

Conversation

tradiff
Copy link
Contributor

@tradiff tradiff commented Sep 25, 2023

Closes #2373

Scrolling a non-focused pane with the mouse wheel wasn't working. It turns out we are detecting the hovered pane, and perform_key_assignment does have the hovered pane, but it just wasn't passing this information in to scroll_by_current_event_wheel_delta. This resulted in scroll_by_line repeating the operation to get the current pane, and this doesn't have the hovering logic.

The fix is to pass the pane along in the call to scroll_by_current_event_wheel_delta, and it's subsequent call to scroll_by_line

@tradiff
Copy link
Contributor Author

tradiff commented Oct 7, 2023

@wez, I just wanted to bring my PR to your attention and see if there's anything else I should update or improve. I totally understand that you're a busy person, so no rush at all 😄

Thanks for your time and all the work you do on wezterm. I appreciate any feedback you can provide when you have a moment.

@wez wez merged commit bc4244b into wez:main Jan 22, 2024
1 check passed
@wez
Copy link
Owner

wez commented Jan 22, 2024

Looks good, thanks!

@Felixoid
Copy link

Many thanks! The scroll works now. Unfortunately, only partially, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scroll unfocused pane
3 participants