mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-13 18:50:29 +03:00
Open user profile at around mouse anchor (#2440)
This commit is contained in:
parent
544a06964d
commit
63fa60e7f4
4 changed files with 13 additions and 3 deletions
|
|
@ -224,3 +224,10 @@ export const notificationPermission = (permission: NotificationPermission) => {
|
|||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
export const getMouseEventCords = (event: MouseEvent) => ({
|
||||
x: event.clientX,
|
||||
y: event.clientY,
|
||||
width: 0,
|
||||
height: 0,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue