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

[wishlist] Mouse wheel support #18

Open
3 tasks
neuschaefer opened this issue May 25, 2017 · 3 comments
Open
3 tasks

[wishlist] Mouse wheel support #18

neuschaefer opened this issue May 25, 2017 · 3 comments

Comments

@neuschaefer
Copy link
Contributor

Hi, first of all, nice project!

I'd like to be able to use the mouse wheel to scroll the viewport. As far as I can see, ScratchABit would have to:

  • announce its interest in mouse scroll events to the terminal
  • interpret the control sequences for scroll up/down
  • pass those events down into the Editor view and handle them similar to page up/down events
@neuschaefer neuschaefer changed the title [whishlist] Mouse wheel support [wishlist] Mouse wheel support May 25, 2017
@neuschaefer
Copy link
Contributor Author

Ok, If we switch to the X11 mouse protocol, and enable Alternate Scroll mode, we can receive events for buttons 4 and 5, which are the scroll wheel.

(the picotui repo may be a better place for this discussion)

@pfalcon
Copy link
Owner

pfalcon commented May 25, 2017

Thanks for trying ScratchABit, feel free to share more of your impressions.

(the picotui repo may be a better place for this discussion)

Indeed, majority of the functionality would need to be implemented in picotui, SAB would just handle the picotui events.

@neuschaefer
Copy link
Contributor Author

I have a mostly working patch. I'll polish it a bit and then make a pull request.

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

No branches or pull requests

2 participants