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

Support scrollable UI nodes (Overflow::Scroll?) #8074

Open
nicoburns opened this issue Mar 13, 2023 · 0 comments · May be fixed by #8104
Open

Support scrollable UI nodes (Overflow::Scroll?) #8074

nicoburns opened this issue Mar 13, 2023 · 0 comments · May be fixed by #8104
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Enhancement A new feature

Comments

@nicoburns
Copy link
Contributor

What problem does this solve or what need does it fill?

The ability to create a scrollable region is a common requirement when building a user interface.

What solution would you like?

Build in support for scrolling enabled by Overflow::Scroll or some similar marker on a node. It should be possible to control whether a node scrolls independently in each axis.

Additional context

Scrolling is currently implemented as an example in the ui/ui.rs example. But this:

  • Requires every user to implement it themselves using raw scrollwheel events
  • Does not support affordances such as scrollbars
  • Is not a great solution as it requires a relayout every time the scroll position changes
@nicoburns nicoburns added C-Enhancement A new feature S-Needs-Triage This issue needs to be labelled labels Mar 13, 2023
@nicoburns nicoburns changed the title Support Overflow::Scroll Support scrollable UI nodes (Overflow::Scroll) Mar 13, 2023
@nicoburns nicoburns added the A-UI Graphical user interfaces, styles, layouts, and widgets label Mar 13, 2023
@james7132 james7132 removed the S-Needs-Triage This issue needs to be labelled label Mar 13, 2023
@nicoburns nicoburns changed the title Support scrollable UI nodes (Overflow::Scroll) Support scrollable UI nodes (Overflow::Scroll?) Mar 13, 2023
@nicoburns nicoburns linked a pull request Mar 16, 2023 that will close this issue
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Enhancement A new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants