https://codepen.io/GreenSock/pen/LZOMKY
I modified the scrollTo example code, but the result did not work as I expected.
I added offsetY to scrollTo, the first click works perfectly when the scroll position is less than the element's scroll position.
However, if I repeatedly click, the offsetY continues to apply, rather than staying fixed at the desired element and then applying the offset. When the scroll position is greater than the element's position, it cannot scroll to the desired position at all.
I expected it to work like box2. Currently, for box2, I am using a fixed y value.