fix minor visual bugs

This commit is contained in:
Boof2015
2026-07-25 20:37:19 -04:00
parent 54966b255d
commit c0683661b4
7 changed files with 127 additions and 26 deletions
@@ -13,6 +13,19 @@ interface NowPlayingDismissSpring {
damping: number;
}
/**
* The overlay pan must briefly yield when its body is being replaced. Otherwise
* RNGH can cancel the old child tree after it has already written a partial
* translateY, leaving the newly mounted body parked off-screen.
*/
export function shouldEnableNowPlayingPan(
playerOpen: boolean,
childSheetOpen: boolean,
bodySwitching: boolean
): boolean {
return playerOpen && !childSheetOpen && !bodySwitching;
}
/**
* Preserve the exact release velocity, then make the spring progressively
* stronger and more damped for hard flicks so it sheds speed after handoff.