mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
* fix(mobile): stop page bounce and input zoom; URL keyboard for new browser tabs * feat(mobile): smoother motion, press feedback everywhere, reduced motion for sheets Working rings and the tool-run pulse run as compositor animations on the page. Sheets, the right panel, the page stack and the pager cross-fade under Reduce Motion. The right panel shares the sheet's drag physics. The composer cross-fades Send/Stop/Save and the mic, jump-to-latest and prompt cards ease in, banners ease their height, and every Pressable shows a pressed state. Pairing gets a success beat, and the clean state fades in after a commit.
19 lines
967 B
TypeScript
19 lines
967 B
TypeScript
// The sheet's motion as plain numbers, free of any animation library, so Animated and Reanimated
|
|
// callers (and their test mocks) share one source.
|
|
|
|
// iOS's sheet curve: a quick start that settles gently, so a sheet arrives without a hard stop.
|
|
export const SHEET_CURVE = [0.32, 0.72, 0, 1] as const
|
|
/** Content that grows or shrinks inside a sheet eases on the same curve. */
|
|
export const SHEET_HEIGHT_DURATION_MS = 320
|
|
/**
|
|
* Critically damped, so a released sheet or panel settles without a bounce. Reanimated 4 defaults
|
|
* mass to 4, which turned the old `{ damping, stiffness }` pair into a wobble.
|
|
*/
|
|
export const SETTLE_SPRING = { dampingRatio: 1, duration: 350 } as const
|
|
/**
|
|
* Reduce Motion swaps every slide (sheets, the side panel, page pushes, in-sheet pages) for a
|
|
* cross-fade in place, like iOS; a swipe-away still follows the finger and then fades.
|
|
*/
|
|
export const REDUCED_MOTION_FADE_MS = 200
|
|
export const REDUCED_MOTION_DISMISS_FADE_MS = 150
|