Closed
Description
Describe the bug
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.
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 the set
-method
https://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
System:
OS: Windows 11 10.0.22631
CPU: (12) x64 AMD Ryzen 5 5500U with Radeon Graphics
Memory: 6.63 GB / 15.33 GB
Binaries:
Node: 20.18.0 - C:\Program Files\nodejs\node.EXE
npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
pnpm: 9.12.2 - C:\Program Files\nodejs\pnpm.CMD
bun: 1.1.21 - ~\.bun\bin\bun.EXE
Browsers:
Edge: Chromium (127.0.2651.74)
Internet Explorer: 11.0.22621.3527
npmPackages:
svelte: ^5.16.0 => 5.16.0
Severity
annoyance