wealth/packages/island/src/organisms/lightbox/constants.ts

6 lines
284 B
TypeScript
Raw Normal View History

/** The zoom buttons step through these scales: ۱۰۰٪ → ۱۵۰٪ → ۲۰۰٪ → ۳۰۰٪. */
export const ZOOM_STEPS = [1, 1.5, 2, 3] as const;
/** How far (px) a pointer travels sideways before it counts as a swipe to the next image. */
export const SWIPE_THRESHOLD_PX = 48;