Closed ducheng1 closed 11 months ago
@ducheng1 Good day :)
You have to use the update.elementEvents
option for the library to update itself when the transition is finished:
<OverlayScrollbarsComponent
options={{
update: {
elementEvents: [['img', 'load'], ['*', 'transitionend']]
}
}}
/>
This configuration describes that the plugin will update when an img
element dispatched a load
event and when any (*
) element dispatched the transitionend
event.
You can also use this options:
<OverlayScrollbarsComponent
options={{
update: {
elementEvents: [['img', 'load'], ['*', 'transitionstart transitionend']]
}
}}
/>
To register multiple events to a single selector.
thanks a lot and have a good day😊
@ducheng1 you're welcome :)
When I use transition for a container to animate its change on height, the scrollbar just not updated and can't scroll anyway, until another container appears and change the parent element's height.
how this problem occured
codes