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

Scrolling list-views with the mouse #15

Open
benknoble opened this issue Apr 28, 2022 · 2 comments
Open

Scrolling list-views with the mouse #15

benknoble opened this issue Apr 28, 2022 · 2 comments

Comments

@benknoble
Copy link
Contributor

A quick glance at the racket/gui docs didn't get me too far, so: what would it take to make the view in list-view scrollable with the mouse (in addition to dragging the scrollbar)?

Is this a fundamental limitation of racket/gui that such things aren't supported automatically or even easily? Or is there a simple piece of plugin code that I can add as a mixin or even a PR here?

DrRacket's editor scrolls with the mouse, so I'm sure it must be possible. But if it's intrinsically difficult code, I can live without it.

@Bogdanp
Copy link
Owner

Bogdanp commented Apr 28, 2022

I've been planning to look into this for a bit, but haven't had time recently. The list-view uses racket/gui panels under the hood, and those don't support mouse scrolling. There's a way to get the scroll events, but I don't think there's a way to control the scroll position even if you're able to grab the events, so I think racket/gui itself needs to be updated to support this.

Bogdanp added a commit that referenced this issue Apr 28, 2022
@benknoble
Copy link
Contributor Author

Asked about this on Discourse to see if the core team or a racket/gui expert would weigh in: https://racket.discourse.group/t/scrolling-racket-gui-panels-with-the-mouse/957

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