mirror of
https://github.com/tiennm99/rubik.git
synced 2026-07-30 02:22:32 +00:00
In @tweenjs/tween.js v25 new Tween() instances are no longer auto-added to a default group, so the module-level update() does not advance them. The drag-to-rotate gesture relied on this: on pointer release the snap tween never advanced, leaving the dragged face frozen at its drag angle until the user clicked again. Wire animate-move.js to a private Group, pass it to every Tween, and drive it from tickTweens(). Add a regression test that exercises both the broken (no-group) and fixed (group) code paths so a future tween upgrade or refactor will fail loud.