mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +01:00
Move iOS check outside
This commit is contained in:
parent
f8674963b3
commit
660cbebbc4
1 changed files with 4 additions and 3 deletions
|
@ -81,6 +81,10 @@ const visibilityText = {
|
||||||
direct: 'Private mention',
|
direct: 'Private mention',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const isIOS =
|
||||||
|
window.ontouchstart !== undefined &&
|
||||||
|
/iPad|iPhone|iPod/.test(navigator.userAgent);
|
||||||
|
|
||||||
function Status({
|
function Status({
|
||||||
statusID,
|
statusID,
|
||||||
status,
|
status,
|
||||||
|
@ -809,9 +813,6 @@ function Status({
|
||||||
|
|
||||||
const showContextMenu = !isSizeLarge && !previewMode && !_deleted && !quoted;
|
const showContextMenu = !isSizeLarge && !previewMode && !_deleted && !quoted;
|
||||||
|
|
||||||
const isIOS =
|
|
||||||
window.ontouchstart !== undefined &&
|
|
||||||
/iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
||||||
// Only iOS/iPadOS browsers don't support contextmenu
|
// Only iOS/iPadOS browsers don't support contextmenu
|
||||||
// Some comments report iPadOS might support contextmenu if a mouse is connected
|
// Some comments report iPadOS might support contextmenu if a mouse is connected
|
||||||
const bindLongPressContext = useLongPress(
|
const bindLongPressContext = useLongPress(
|
||||||
|
|
Loading…
Reference in a new issue