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 scroll view component #98

Open
nazmulidris opened this issue Mar 23, 2023 · 0 comments
Open

Add scroll view component #98

nazmulidris opened this issue Mar 23, 2023 · 0 comments

Comments

@nazmulidris
Copy link
Member

nazmulidris commented Mar 23, 2023

Add a scroll view component that behaves like https://developer.mozilla.org/en-US/docs/Web/CSS/overflow

When a child component is wrapped using this scroll view parent, it should handle the scroll operations and clipping to view port.

For the child component, perhaps it is best for it to render its full output to an offscreen buffer as large as it needs, and have the parent scroll view handle clipping it to the viewport.

This is very different from what we have today where each component is responsible for managing its own scrolling and clipping to viewport. It might also make sense to have a new trait for a component that is a child of a scroll view.

Provide scrolling hints (up, down, left, right)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants