[eric] onboarding cursor: restore writePos-after-spring order so mac stays byte-identical (windows still eases via no-op controls + css transition); bump 1.1.65

This commit is contained in:
Eric
2026-05-26 11:17:01 -07:00
parent 3509c08057
commit 40b7c19b75
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "openswarm",
"version": "1.1.64",
"version": "1.1.65",
"description": "OpenSwarm — AI Agent Orchestrator",
"author": "openswarm-ai",
"main": "main.js",
@@ -100,18 +100,18 @@ const AgenticCursor = forwardRef<AgenticCursorHandle>((_props, ref) => {
async moveTo(x, y, transition) {
// Stop prior tracker so it doesn't snap the cursor back to its old anchor mid-animation.
stopTrackingInternal();
// instant=false so the Windows CSS-transition eases here (mirrors Mac's spring controls.start).
writePos(x, y, true, false);
// Order matters and is identical to the pre-Windows version on Mac: Framer's spring drives the popup via onUpdate during the animation, then writePos confirms the final position. On Windows controls.start is the shim no-op so this resolves instantly and writePos (instant=false) hands the CSS transition the target to ease toward.
await controls.start({
x,
y,
transition: transition ?? SPRING,
});
writePos(x, y, true, false);
},
async fadeOut(to) {
stopTrackingInternal();
writePos(to.x, to.y, true, false);
await controls.start({ x: to.x, y: to.y, transition: SPRING });
writePos(to.x, to.y, true, false);
await controls.start({
opacity: 0,
scale: 0.5,