mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-12 09:13:23 +00:00
The sandbox host now routes the back gesture into the applet/site's own history first: an OnBackPressedCallback calls webView.goBack() while there's history to pop (in-page links, iframe navigations, and history.pushState all count), and only disables itself — letting system back return to Amethyst — once the WebView is at its first page. The callback's enabled state tracks canGoBack() via doUpdateVisitedHistory / onPageFinished. Works with predictive back. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016ncMHuBBVHEf7spAoSssde