Skip to content

feat: Enabled scrolling on listbox widgets#2642

Merged
hoffstadt merged 1 commit intohoffstadt:masterfrom
v-ein:feature/2298-listbox-scrolling
May 4, 2026
Merged

feat: Enabled scrolling on listbox widgets#2642
hoffstadt merged 1 commit intohoffstadt:masterfrom
v-ein:feature/2298-listbox-scrolling

Conversation

@v-ein
Copy link
Copy Markdown
Collaborator

@v-ein v-ein commented Apr 27, 2026


name: Pull Request
about: Create a pull request to help us improve
title: feat: Enabled scrolling on listbox widgets
assignees: ''


Description:

Closes #2298.

This PR adds scrolling capabilities to add_listbox, which enables get/set_y_scroll, scrolling handlers, and so on. This is mostly useful for vertical scrolling since the listbox never shows a horizontal scrollbar (but it still can be scrolled horizontally either with OS gestures, including horizontal scroll wheel, or via set_x_scroll).

Concerning Areas:
In future, we'll probably need to add an option to show horizontal scrollbar. For now, proceeding without it to ship the fix sooner.

Work on this fix also revealed a possible bug in how the listbox behaves in disabled state - see the TODO added at the bottom of draw_listbox. We'll need to address it at some point.

@v-ein v-ein requested a review from hoffstadt April 27, 2026 19:41
@hoffstadt hoffstadt merged commit 81d9023 into hoffstadt:master May 4, 2026
5 checks passed
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.

Can't use set_y_scroll for listbox

2 participants