mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-21 10:44:01 -04:00
frame: keep connected chrome attached to the bar during spring overshoot
This commit is contained in:
@@ -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)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user