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

scrollPos works only after window resize #44

Open
Nickonimus opened this issue Jul 26, 2023 · 3 comments
Open

scrollPos works only after window resize #44

Nickonimus opened this issue Jul 26, 2023 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@Nickonimus
Copy link

Hi
scrollPos works for me only after window resize, is this a bug?

@malangfox malangfox self-assigned this Jul 27, 2023
@malangfox malangfox added the question Further information is requested label Jul 27, 2023
@malangfox
Copy link
Contributor

Hello @Nickonimus.

We have tried to reproduce the issue you left, but it works fine without changing the window size.
You can check out this demo using scrollPos.

We would like to know how you are using scrollPos, can we check your implementation?

@Nickonimus
Copy link
Author

Nickonimus commented Jul 31, 2023

Thank you!

After clicking 'projects', you can scroll down to open infinite grid again, i used scrollPos for this. But to make it work i had to use strange fix. Just replaced two event listeners from 'resize' to 'mouseover' inside conveyer's source code.

@malangfox
Copy link
Contributor

malangfox commented Nov 6, 2023

@Nickonimus

Our @egjs/conveyer 1.7.0 version added the useResizeObserver to ConveyerOptions, which updates the status after the element's size changes.
Can you try updating our package to the latest version and using this option to true fixes this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants