Replies: 1 comment
-
|
That's a good point. We should definitely consider making this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋!
I'm trying to implement the new
ScrollAreacomponent (which is working really great so far!) with some shadows to visually indicate the user that they can scroll the area (something like the shadow scrollbars of https://malte-wessel.github.io/react-custom-scrollbars/).For that i'm using the
hasOverflowXandhasOverflowYprops fromuseScrollAreaContextto show/hide the shadows and I wanted to ask why these 2 props aretrueby default, on the initial render?I'm asking this because it flickers the shadows when the container is not overflowing.
You can check the behavior here: https://stackblitz.com/edit/dyrfqqof?file=src%2FApp.tsx
I simply
console.logthe 2 props, you can see thathasOverflowXistrueon the first render whereas the container is not overflowing on the x-axis. This is the same forhasOverflowYif we invert the axis.Beta Was this translation helpful? Give feedback.
All reactions