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

Add support for scrolling left and right. #788

Merged
merged 4 commits into from Aug 5, 2023

Conversation

Gronis
Copy link
Contributor

@Gronis Gronis commented Jun 3, 2023

crossterm does not currently support left and right scrolling. This PR fixes that.

@Gronis Gronis requested a review from TimonPost as a code owner June 3, 2023 00:12
Copy link
Member

@TimonPost TimonPost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice if we can also add support for windows, do you have a windows machiene, otherwise i can push to this pr https://learn.microsoft.com/en-us/windows/win32/inputdev/wm-mousehwheel

I added support for windows. Altough, for some reason, I dont get any events from winapi if I use my third mouse button to scroll horizontally. Not sure why it is not working.

@Gronis
Copy link
Contributor Author

Gronis commented Jun 13, 2023

I formatted your changes as required by the repository. Great to see some support on windows as well.

Would you say it’s ok to merge or is additional support for windows required (eg your comment regarding third mouse button)? I don’t have a windows system to test side scrolling unfortunately.

Copy link
Member

@TimonPost TimonPost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fine for now, thanks!

@TimonPost TimonPost merged commit 55739aa into crossterm-rs:master Aug 5, 2023
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.

None yet

2 participants