add long press

This commit is contained in:
Gigiaj 2025-06-18 01:13:39 -05:00
parent 6c6fd89911
commit 550534ae31

View file

@ -439,6 +439,18 @@ function SpaceTab({
});
};
const longPressBinder = useLongPress(
() => {
if (isMobile && !isDragging) {
setMobileSheetOpen(true);
}
},
{
threshold: 400,
cancelOnMovement: true,
}
);
return (
<RoomUnreadProvider roomId={space.roomId}>
{(unread) => (