-
Notifications
You must be signed in to change notification settings - Fork 94
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
Large space between first and last item #7
Comments
Can you provide your code so that I can reproduce this? I will try to fix this as soon as possible. |
Sure, but it's really nothing much
|
Hi @justin-chu, any luck? |
Hey @PG-20, sorry, I should have a fix pushed by next week. A temporary fix for you might be to paste all the components multiple times as the children of the marquee. |
Great, I'll wait. So I guess you found the bug then? What was the issue? |
It's most likely due to it only repeating the child components twice, so larger screens may have a gap between the last and first component. There might be a couple other bugs to that I'll fix soon. |
Any update on this issue? I'm also facing a problem with a gap between the first and last component on large screens. |
Sorry @aliiip, I've been trying to find a way to repeat the children dynamically, but the problem is harder than I initially thought it would be. |
I've been experimenting with ways to fix this and i think i have found the problem. setting the
doing this in chrome dev tools fixes it for me but i haven't tried patching the package |
Are there any updates/fix for this issue? |
This solution while somewhat effective doesn't resolve the root of the issue which is the library only clones the items once so if you render 3 items, the component will render 6 instead. Even with The long term solution I suppose would be to measure the width of the |
At the moment, I just duplicated the children, it's not perfect but it works for now. |
Fixed in 1.4.0 |
@Luna-omni could you please set |
@justin-chu |
There is a large space between the first and last items in the marquee and the behaviour is surprisingly very inconsistent. If i switch the viewport to mobile size, it works well, and I switch it back to desktop, it's perfect too, but when I refresh it again, back with the white space b/w first and last item. Not sure how to fix. I using the tag without any props currently
The text was updated successfully, but these errors were encountered: