Fix jitter when position/height change

This commit is contained in:
loucass003 committed 2026-09-22 04:38:00 +02:00
1 parent 8dbe1e5c21
commit 963bc4ac1b
1 file changed
+8 -4
@@ -387,10 +387,14 @@ function initializePreview(
const newHeight = computeHeadYOffset(bones);
if (newHeight !== heightOffset) {
heightOffset = newHeight;
views.forEach((v) => {
v.onHeightChange(v, heightOffset);
v.controls.target.add(followOffset);
});
// Only reframe while following; otherwise this fights the user's
// manual drag/zoom on every bone update (height jitters constantly).
if (followLocked) {
views.forEach((v) => {
v.onHeightChange(v, heightOffset);
v.controls.target.add(followOffset);
});
}
}
},
updateTrackers,