*update*
I have try to simulate the calculation by using tween.progress() to get the current tweening value, but the cost seems even higher than using window.scrollY itself.
[ roughly observed in chrome timeline ]
here is my code :
TweenMax.to( window, 0.3, {
scrollTo : { x:0, y : slideTo },
onUpdate : function ( _pageContainer, tween, initial, deltaY ) {
_pageContainer.updatePositionData( initial + tween.progress() * ( deltaY ) );
},
onUpdateParams : [ this, '{self}', initial, slideTo - initial ],
ease : Power1.easeOut
} );
Sorry, if it's "insignificant problem", I'm just curious if it's possible to get the tweenmax calculated value in the update event.