You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When switching from tweened to Tween, because tweened is now deprecated, the behavior doesn't seem to be the same. The difference seems to mainly be when tweening objects and updating the target multiple times per second.
Comparing the implementation of tweened and Tween I've noticed a difference in the aborting of the previous tween and started work on a fix (TheSpeedM@aa4d472), I will make a PR once I've tested this.
Describe the bug
When switching from
tweened
toTween
, becausetweened
is now deprecated, the behavior doesn't seem to be the same. The difference seems to mainly be when tweening objects and updating the target multiple times per second.Reproduction
Using the deprecated
tweened
https://svelte.dev/playground/5243f9ee07484a3486d8f76eaa8762ff?version=5.16.0
Notice how the text seems to follow the mouse smoothly.
Using
Tween
and theset
-methodhttps://svelte.dev/playground/bfff977c6b9441ceb2fe28583ee842ef?version=5.16.0
Now the text isn't following the mouse smoothly at all and seems to just start the transition when the movement has ended.
Using
Tween
and setting.target
https://svelte.dev/playground/f6a82d6b41d64573a4ae8e810642c162?version=5.16.0
This seems to produce the same result as using
Tween
and.set
.Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: