a tool for shared writing and social publishing
0
fork

Configure Feed

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

handle longpress again

+8
+8
src/hooks/useLongPress.ts
··· 37 37 // Set the starting position 38 38 startPosition.current = { x: e.clientX, y: e.clientY }; 39 39 40 + isLongPress.current = false; 41 + 42 + longPressTimer.current = window.setTimeout(() => { 43 + isLongPress.current = true; 44 + cb(); 45 + end(); 46 + }, 500); 47 + 40 48 // Add mousemove and touchmove listeners 41 49 mouseMoveListener.current = (e: MouseEvent) => { 42 50 if (!startPosition.current) return;