Hi,
I'm fairly good user of the lib, which i find awesome. thanks
I'm having this case right now where i tween a plain numeric value, which i round with the roundProps plugin, and to which i react whenever there's an update with the onUpdate() hook. As the tween runs, the onUpdate() function is fired for every single step on the way, ignoring the fact that the value is rounded in post treatment by the plugin, firing unnecessary onUpdates on the way. Is there a way to prevent that ?
Quite simple example :
let wrapper = { index: 0, length : 0 };
TweenMax.killAll();
TweenMax.to(wrapper, 2, {
length: 10
, roundProps: 'length'
, onUpdate: value => {
console.log(wrapper.length)
}
})
Thanks for the help,
J.