Join Nostr
2026-03-21 22:28:28 UTC
in reply to

frederikhandberg on Nostr: Regarding the website objects in the minimap, I haven’t decided how I want to ...

Regarding the website objects in the minimap, I haven’t decided how I want to implement it yet.

Of course, I could just embed another `WKWebView` in the minimap, but then I would be duplicating the same twice, which seems unnecessarily resource intensive…

Therefore, I’m considering a different approach where the app should take a snapshot of the website and then show that in the minimap. The minimap is so small that it does not really matter anyways.

When user clicks the web object, then deselect it again, the app should take a new snapshot. I think that’s the way to go.

The question is if we have five web objects in the canvas, that would be five different `WKWebView`’s which might also be resource intensive. So perhaps I should also replace the web objects in the canvas with a snapshot when user is not interacting with the object. This means, when user clicks a web object or maybe hovers it, the snapshot is replaced with the real webview. But this approach is only good if it is super quick, so that it feels natural. Otherwise it just leads to a bad UX if it takes too long for the snapshot to be replaced with the webview… will need to experiment with this.