hotwired / turbo-android

Android framework for making Turbo native apps
MIT License
424 stars 50 forks source link

view transitions and attach/detach #346

Open aktxyz opened 5 days ago

aktxyz commented 5 days ago

It looks like for every page navigation there is process where a screenshot is taken, then shown, then the webview is detached/navigated/reattached. This can result in a flash when navigating.

This also makes any effort to use view transitions not work. The IOS version does not seem to go thru this screenshot/attach process.

Is there a reason that is the method used here on Android? Any way to disable that ... allowing view-transitions to work?

I have poked around and made some hacky attempts, but as soon as comment out the detach portion and disable screenshots, the screen goes blank after a nav (like the webview is still detached).

I am going to keep poking at it ... but any guidance would be great !