Open user profile at around mouse anchor (#2440)

This commit is contained in:
Ajay Bura
2025-08-16 17:04:46 +05:30
committed by GitHub
parent edb1664596
commit 4c5ad69ca0
4 changed files with 13 additions and 3 deletions
+7
View File
@@ -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,
});