See video here: https://jitl.notion.site/Back-gesture-iOS-3c44da9f8d13491d86...
See video here: https://jitl.notion.site/Back-gesture-iOS-3c44da9f8d13491d86...
However, it's much, much better when running in a native web app container like Capacitor.
I think it's quite reasonable to want to respond to a back gesture to cancel a modal that asks if you're sure about deleting <some resource>. You could render everything server side to get website-like navigation, but for these things JS is probably one of the better mechanisms to make user interaction more pleasing.
This stuff should absolutely be kept away from news sites, blogs and other web resources because they're awful enough already with their constant popups about signing up for newsletters, accepting notifications and pitiful pleas to use their app. For your average PWA, though, this is definitely a bad thing.
They are not. They are websites running inside a browser. So, they must respect the browser. If they pretend to be standalone and not care about the browser, it's their own fault, and not the browser's.
And yes. The browser cannot distinguish between your shitty "web app" and a regular site.
I’m sure these sites would respect your wishes and not use this for nefarious purposes!
You see, features like this would make the Web worse for 99.99% of users by enabling shitty websites’ abuses, while making it just a tiny bit better for those who insist on the subpar experience of running general purpose applications in their browsers.
So yeah, that’s gonna be a no from me.
[1]: https://developer.mozilla.org/en-US/docs/Web/API/History
Also I think the reason it has to load the tweets again is to not serve stale content. They could have the browser cache it using the same cache control mechanism as a page load if they wanted.
If it was possible to check if the user had used the swipe gesture, then it would be possible to use that to control whether or not to display the custom animation, preventing a double-animation scenario.