We have some events list, and on the beginning loaded all list.
We have switcher in first block, which switch current events, past events and all events.
After switching we will have a problem with white space on the right side, because .pin-spacer's values didn't re-calculate.
I call tl.scrollTrigger.update() and tl.scrollTrigger.refresh() after switching, but it didn't have a result, and .pin-spacer didn't change.
Please, help me to solve this problem! 🤕
Thank you in advance! 🙂
P.S. Please, ignore the incorrect positioning and extra padding at the bottom, this is just a quickly torn piece for an example.