You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How big do you estimate this issue is? Is there any underlying issue you faced before coming to this specific reduced case?
I know where this comes from but it's tricky to solve. There is a loop at SimpleBar init where the resize observer is triggered by the hideNativeScrollbars() function, as this is moving size.
The resize observer should probably only start listening after initial setup...But this would probably need an overall rework cause that part of the code is especially messy and error prone.
Thing is SimpleBar is just a hack so obviously there is no "good" solution for doing what we are doing.
Describe the bug
Putting a SimpleBar on a tiny div under certain circumstances results in an infinite recalculation loop in Firefox.
To Reproduce
Run this jsfiddle in Firefox. It consists of
I see visible flashing as the SimpleBar repeatedly recalculates.
Expected behavior
There’s nothing dynamic here, so SimpleBar should only recalculate once.
Reproducible example
https://jsfiddle.net/anderskaseorg/4be5o91j/
Your environment
The text was updated successfully, but these errors were encountered: