Browse Source
* test: cover platform input detachment on close Closed top levels retain the presentation source as the platform input callback. A late platform input event can therefore target an already disposed visual tree.\n\nThe regression test requires top-level closure to clear ITopLevelImpl.Input. * fix: detach platform input when presentation source closes Win32 can deliver WM_CAPTURECHANGED while destroying a popup that owns mouse capture. The platform then calls the input handler retained by the disposed presentation source, which logs a warning and can route input into a detached visual tree.\n\nClear the platform input callback at the start of presentation source disposal, alongside the existing scaling event unsubscription. --------- Co-authored-by: Julien Lebosquain <julien@lebosquain.net>pull/21812/head
committed by
GitHub
2 changed files with 20 additions and 1 deletions
Loading…
Reference in new issue