Documentation
¶
Overview ¶
Command webview-overlay mixes a WebView page with Tango's self-drawn UI in one window (docs/specs/canvas-surface.md, step D).
go run ./examples/webview-overlay # canvas above the page go run ./examples/webview-overlay -below # canvas below a transparent page
Above (default): a full-window canvas with PassThrough sits on the WebView. Only the tool card in the bottom-right corner and the round floating button (drag it around; click it to hide or show the card) are opaque; everywhere else the canvas is transparent, so clicks, wheel scrolling and text selection reach the page underneath.
Below (-below, or the switch buttons): the canvas draws the window background and the page, whose CSS background is transparent, floats over it. The canvas gets no pointer input there; the page's toggle button (a JS message) brings it back on top.