mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-14 15:16:09 -05:00
Add speculative iOS PWA freeze fix
This commit is contained in:
@@ -225,7 +225,12 @@ export function SendouMenuItem(props: SendouMenuItemProps) {
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
menu.close();
|
||||
// leaving the top layer inside the click that navigates locks up the iOS PWA
|
||||
if (props.href) {
|
||||
requestAnimationFrame(menu.close);
|
||||
} else {
|
||||
menu.close();
|
||||
}
|
||||
props.onAction?.();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user