6 lines
284 B
TypeScript
6 lines
284 B
TypeScript
|
|
/** 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;
|