Replies: 1 comment 1 reply
-
Thinking out loud, we would need to I'm personally a bit wary of doing such a workaround due to all the potential unintended side effects, ideally this would be fixed as a browser bug IMO or if you could use onPress instead since that handles hit detection as you've noted in your "Workaround" section.
What exactly did you mean by the above in regards to using onPress? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all, first, I love
react-aria
. Fantastic library and great job!This is really obscure issue, but also something I was hoping
react-aria
would smooth over.In iOS (
15.6
) how iOS is handling pressing down on a link and then sliding the finger off is triggering different behavior. In regular browsing mode, Safari correctly cancels the press and does not navigate. When pressed and finger slid off in standalone mode, the link is still triggered and the page changes. This only happens in iOS PWA standalone mode:This only becomes more apparent when I add:
as CSS to make the links function much closer to iOS buttons (building an iOS standalone webapp, I want it as close as possible to a native app). It still happens without it though, just harder to detect. I was hoping that React-Aria would be able to correctly cancel the navigation when the user slides their finger off the link.
Links
Repro
Workaround
The odd thing is that with all my testing, I've been able to get a workaround with
react-aria
. TheonPress
function is correctly identifying when a press ends on the link or has moved off. So I can use that to initiate a route change with the Next router. You can see me play around with that here. I'd much rather not need to do this, since I want correct links for screen readers and accessibility and would only use the client side navigation for standalone mode.Beta Was this translation helpful? Give feedback.
All reactions