this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add more conditions for binding longpress

Should be same condition as contextmenu

+4 -3
+4 -3
src/components/status.jsx
··· 795 795 const contextMenuRef = useRef(); 796 796 const [isContextMenuOpen, setIsContextMenuOpen] = useState(false); 797 797 const [contextMenuProps, setContextMenuProps] = useState({}); 798 + 799 + const showContextMenu = !isSizeLarge && !previewMode && !_deleted && !quoted; 800 + 798 801 const isIOS = 799 802 window.ontouchstart !== undefined && 800 803 /iPad|iPhone|iPod/.test(navigator.userAgent); 801 804 // Only iOS/iPadOS browsers don't support contextmenu 802 805 // Some comments report iPadOS might support contextmenu if a mouse is connected 803 806 const bindLongPressContext = useLongPress( 804 - isIOS 807 + isIOS && showContextMenu 805 808 ? (e) => { 806 809 if (e.pointerType === 'mouse') return; 807 810 // There's 'pen' too, but not sure if contextmenu event would trigger from a pen ··· 828 831 cancelOnMovement: 2, // true allows movement of up to 25 pixels 829 832 }, 830 833 ); 831 - 832 - const showContextMenu = size !== 'l' && !previewMode && !_deleted && !quoted; 833 834 834 835 const hotkeysEnabled = !readOnly && !previewMode; 835 836 const rRef = useHotkeys('r', replyStatus, {