* show actions on image gallery for android * use a constant, update dependencies * use original window metrics if safe insets fail * restore deps
21 lines
753 B
TypeScript
21 lines
753 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
export const GALLERY_FOOTER_HEIGHT = 75;
|
|
export const VIDEO_INSET = 100;
|
|
export const ANDROID_VIDEO_INSET = 20;
|
|
|
|
// Fallback for Android navigation bar height when SafeAreaContext returns 0 in overlays
|
|
// Typical Android 3-button navigation bar height is 48-63dp
|
|
export const ANDROID_NAV_BAR_HEIGHT = 63;
|
|
|
|
// Additional padding for Android gallery footer to ensure visibility above navigation bar
|
|
export const ANDROID_GALLERY_FOOTER_PADDING = 10;
|
|
|
|
export const DOUBLE_TAP_SCALE = 4;
|
|
export const MAX_SCALE = 7;
|
|
export const MIN_SCALE = 0.7;
|
|
export const OVER_SCALE = 0.5;
|
|
|
|
export const MIN_VELOCITY = 700;
|
|
export const MAX_VELOCITY = 3000;
|