mirror of
https://github.com/Boof2015/astra-mobile.git
synced 2026-08-21 04:59:53 +02:00
fix minor visual bugs
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user