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

Is there support for virtual scrolling in ScrollBox #123

Open
jickchen34 opened this issue Dec 1, 2023 · 3 comments
Open

Is there support for virtual scrolling in ScrollBox #123

jickchen34 opened this issue Dec 1, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@jickchen34
Copy link

I am currently working with ScrollBox and need to handle large datasets efficiently. I would like to know whether ScrollBox supports virtual scrolling.

@jickchen34 jickchen34 added the enhancement New feature or request label Dec 1, 2023
@sn4h
Copy link

sn4h commented Jan 2, 2024

Something like position.x, position.y and position.set(x,y) would have been very helpful.

@CyberDex
Copy link
Member

CyberDex commented Jan 4, 2024

There is a scrollTo method (https://pixijs.io/ui/ScrollBox.html). The issue with performance is that all the items are rendered when scrolling. You will have to extend it to implement what you need.

@sn4h
Copy link

sn4h commented Jan 4, 2024

I managed to get the y position by listening to scrollBox.items[0].parent.y inside a ticker. I guess in my case is a rare one where I want to set the scroll start y position to a specific pixel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants