mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-04 22:40:29 +03:00
add long press
This commit is contained in:
parent
6c6fd89911
commit
550534ae31
1 changed files with 12 additions and 0 deletions
|
|
@ -439,6 +439,18 @@ function SpaceTab({
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const longPressBinder = useLongPress(
|
||||||
|
() => {
|
||||||
|
if (isMobile && !isDragging) {
|
||||||
|
setMobileSheetOpen(true);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
threshold: 400,
|
||||||
|
cancelOnMovement: true,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<RoomUnreadProvider roomId={space.roomId}>
|
<RoomUnreadProvider roomId={space.roomId}>
|
||||||
{(unread) => (
|
{(unread) => (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue