Hello! Sorry for my english, i will use google translator.
Found strange behavior on the official script example https://codepen.io/GreenSock/pen/GRoyWBd
When I scroll down a bit and resize the screen, the current scroll and animation should return to their previous state. This works, but when I remove the optional section with class "gray" from the bottom, the scroll jumps to the top of the page when i resize from mobile to desktop and vice versa.
Why? How do i get the scroll to be saved. Attached video in low resolution.
I wanted to recreate timelines and sub-timelines for mobiles and desktops, but i dont like this jump to the top of the page. Therefore, now I make one instance of the trigger, and when the screen changes, I reset the timeline with clear() and progress(progress), but did not figure out how to create sub-timelines (with add(subtimeline)).
Thanks!
Bug ScrollTrigger.webm