I was breaking my head over this, had a project where the flickering was really bad but in the Storybook demos I didn't see it at all. While comparing the code and CSS, I found this rule:
Which ended up completely fixing the problem. 🙌
So, takeaways:
The Storybook demos are awesome :)
Could the overscroll issues be fixed in the code maybe? Not sure what's causing them, but would be nice to not run into this.
If not: I think the need for overscroll-behavior: none; on html and body should be documented in the readme to save other people some time.
We could, applying the style to the DOM internally or providing a util/hook for users. However something leans me towards having this in the docs to keep the bundle size down.
I was breaking my head over this, had a project where the flickering was really bad but in the Storybook demos I didn't see it at all. While comparing the code and CSS, I found this rule:
Which ended up completely fixing the problem. 🙌
So, takeaways:
overscroll-behavior: none;
onhtml
andbody
should be documented in the readme to save other people some time.