21 lines
923 B
TypeScript
21 lines
923 B
TypeScript
// Tuning for the mobile swipe-to-go-back (interactive pop) gesture.
|
||
//
|
||
// Active only on Capacitor native + mobile, on detail screens nested under a
|
||
// tab section. The gesture is FUNCTIONALLY IDENTICAL to the tab pager:
|
||
// distance-only commit with snap-back, and the SAME tuning — axis-resolve
|
||
// dead-zone, edge-guard, commit threshold and animation curve are all
|
||
// re-exported from the pager's geometry (not re-literalled), so the two
|
||
// gestures stay in exact lockstep and can never drift in feel.
|
||
//
|
||
// Commit threshold = max(MIN_COMMIT_PX, viewport_width × COMMIT_FRACTION) =
|
||
// max(150, 0.4·vw) ≈ 160px on a 400px phone. Below it the card springs back
|
||
// and we STAY on the chat — exactly the pager's "didn't drag far enough →
|
||
// nothing opens".
|
||
export {
|
||
DEAD_ZONE_PX,
|
||
EDGE_GUARD_PX,
|
||
COMMIT_FRACTION,
|
||
MIN_COMMIT_PX,
|
||
PAGER_TRANSITION_MS,
|
||
PAGER_EASING,
|
||
} from '../mobile-tabs-pager/geometry';
|