Files
piik/prototype
T
AAA aa598414a8 fix(app): move windows from the host instead of CSS drag regions
The App's whole window stalled in ordinary use. WebView2 recomputes a page's
CSS drag regions in the embedding process, on the window thread, after each
layout change, and answers pointer moves over a region from there. With the
top bar marked app-region: drag, a posted event reached the window thread up
to 217 ms late on maximize, 85 ms late on opening or closing a popover and
505 ms late while the pointer moved along the bar; with no drag region it was
never late, and the page's own frames showed nothing in either case. Others
report the same path: WebView2Feedback 5798, and a sampled trace of another
wry application that puts the window thread in Controller::UpdateDraggableRegions.

The page's top bar, the standalone caption and the permission prompt now ask
the host on a press, and the host starts the system's own move of the window
(the first press moves, the second maximizes), as Tauri's drag regions do. No
page uses app-region any more, and WebView2's non-client region support is
turned off for every WebView, so that a site's own style cannot hold the
window thread either.

Measured in the App built from this tree with a real pointer: no late event
in any of those phases, also with chat text selected and with a page that
sets a drag region itself; a press and a move on the room's name, on the bar
and on a detached panel's caption moves the window, a double click maximizes
and restores, a drag from the maximized state restores and moves, and a
control in the bar still takes its click. Not exercised: the permission
prompt's heading. Lost with the regions: the system menu on a right click of
the bar, and moving the window by touch.
aa598414a8 · 2026-11-28 08:21:23 -05:00
History
..