-
Notifications
You must be signed in to change notification settings - Fork 292
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
Remove partialVisibilityGutter when there is not enough children #111
Remove partialVisibilityGutter when there is not enough children #111
Conversation
df4783d
to
88eb60f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow! This looks so much cleaner now.. I'll test it over the weekend and let you know if it changes anything..
Thank you. |
@YIZHUANG looks good to me.. i have tested manually.. will try to work to make a pr to add test cases for notEnoughChildren.. resize and children changes should trigger correct functions.. |
I think we still have the problem after this fix : https://codesandbox.io/s/cool-darkness-368tg?file=/src/App.js |
@abhinavdalal there is issue here. function notEnoughChildren(state: CarouselInternalState): boolean { |
@krunalMahaleCactus would you be able to create a PR with relevant test cases to make it easier to understand why it should be less than or equal and not less than.. i see the original code (before this PR) also had less than.. |
No description provided.