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

Scroll Wheel event listener goes off from scroll box position. #20

Open
ClayChong opened this issue May 26, 2020 · 3 comments
Open

Scroll Wheel event listener goes off from scroll box position. #20

ClayChong opened this issue May 26, 2020 · 3 comments

Comments

@ClayChong
Copy link

I constructed a scrollBox with boxWidth and boxHeight I wanted. Then I gather the items that I want to show in the scroll box in a PIXI.Container and add into scrollBox.content. Everything works fine, but the scroll wheel listener not follow scrollBox position and goes off.

I tried to .resize() and .update() the scrollBox again after added in items containers, but not work either.

Can someone help me with this?

Thanks.

@davidfig
Copy link
Owner

How are you moving the scrollbox?

@ClayChong
Copy link
Author

ClayChong commented May 27, 2020

I tried two way. First is normal way scrollbox[ .x & .y ] equal to number. Second is scrollbox.position.set(). Both ended up with same issue.

@bkadime
Copy link

bkadime commented Aug 12, 2020

when resize the window I'm aslo getting this issue on mouse wheel.

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

3 participants