frame: keep connected chrome attached to the bar during spring overshoot

This commit is contained in:
bbedward
2026-09-02 16:48:33 -04:00
parent f65e5ef2f2
commit 9378dfc44e
@@ -38,8 +38,8 @@ function animatedBodyRect(descriptor, dpr) {
return {
"x": snap(rect.x + (side === "right" ? dx : 0), dpr),
"y": snap(rect.y + (side === "bottom" ? dy : 0), dpr),
"width": Math.max(0, snap(rect.width - Math.abs(dx), dpr)),
"height": Math.max(0, snap(rect.height - Math.abs(dy), dpr)),
"width": Math.max(0, snap(rect.width - (side === "left" ? -dx : dx), dpr)),
"height": Math.max(0, snap(rect.height - (side === "top" ? -dy : dy), dpr)),
"dx": snap(dx, dpr),
"dy": snap(dy, dpr)
};