Open ty-bt opened 2 years ago
Not sure there is a good solution to this other than setting your styles appropriately. I dont think we can make any reliable determination of what the users desired styles are here. For example, we could put overflow: none durring the animation, but that would make the parent's scrollbars pop on/off during animation when there should be a scroll bar. Open to suggestions though.
@justin-schroeder And the first animation after moving the scroll bar will be abnormal
@ty-bt Did you figure out a solution for this?
Not sure there is a good solution to this other than setting your styles appropriately. I dont think we can make any reliable determination of what the users desired styles are here. For example, we could put overflow: none durring the animation, but that would make the parent's scrollbars pop on/off during animation when there should be a scroll bar. Open to suggestions though.
@justin-schroeder why not do the following:
p.scrollHeight > p.offsetHeight
)overflow: hidden
until the animation finishes.
windows chrome 102.0.5005.63
https://codesandbox.io/s/naughty-butterfly-ze3mcu?file=/src/App.js
When overflow is auto, the scroll bar will flicker during animation Subsequent animation flickers after scrolling scrollbar manually