microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

Regresssion: Composition drawing broken in multi-window app (worked in 1.5)

Open DHancock opened this issue 1 year ago • 12 comments

Describe the bug

The PointerOver test on controls fails intermittently in the first window after a second window is opened when built with WinAppSdk 1.6. The bug isn't evident 100% of the time, but in my set up it's > 50%. I haven't been able to reproduce this behaviour building against WinAppSdk 1.5.

Please see the video of the attached project running. You can see as the mouse is moved over the button on the first window, the PointerOver indication flashes then goes out, although the button isn't clicked (I changed the PointerOver brush to make it more obvious). You can still click on the button successfully even when the pointer over isn't shown.

Other controls exhibit the same fault. Trimming (or not) doesn't change the out come. Removing the mica background did make it more difficult to reproduce, but it may be a simple timing issue. I'm not sure if this is win app sdk or xaml bug.

https://github.com/user-attachments/assets/e9261c00-b052-487b-8318-abb27552ee19

Steps to reproduce the bug

  • Build and run the attached project
  • Click the "New Window..." button
  • Switch back to the first window
  • Move the mouse over the button to see the effect

MouseOverWeirdness.zip

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

DHancock avatar Oct 15 '24 14:10 DHancock

Edit: Of course it's pointer over not mouse over. I've also made the repro project code a bit more robust, but didn't change it functionality.

The fault is easier to reproduce in my actual app, which has a more complex ui. Build the master branch if required. The video again demonstrates the fault. The colour picker palette entries animate using a scale transition that's triggered by a pointer entered event handler. That now fails as does hovering over the tab item header.

https://github.com/user-attachments/assets/eeaf82ae-9033-4ff0-964b-c3d475667563

DHancock avatar Oct 16 '24 09:10 DHancock

Windows App Sdk 1.6.2 has been released with this bug still reproducable

DHancock avatar Nov 14 '24 11:11 DHancock

Observing same issue on 1.6.3

NGeras avatar Jan 03 '25 11:01 NGeras

Still reproducable on 1.7

NGeras avatar Mar 19 '25 07:03 NGeras

Still reproducable on 1.7

Why am I not surprised? What a ridiculous state of affairs this is. It's not as if multi-window apps are an edge case.

DHancock avatar Mar 19 '25 11:03 DHancock

With the new version of the WinUI Gallery app (2.6.0.0), I do not observe this issue. It uses the same version of the WinAppSDK as our app, where the issue is still present. I will check if the WinUI Gallery uses any other Windowing API for its AppWindow example, but perhaps someone from the Microsoft UI team could comment on this.

NGeras avatar May 16 '25 11:05 NGeras

Please fix this. It still happens in 1.7.2 Many of our customers experience clicks/taps that do not register that might be related to PointerOver behavior: buttons hover are flickering in this situation.

wbokkers avatar May 23 '25 16:05 wbokkers

@codendone I am tagging you, since you helped me out many times by raising awareness of issues. This issue is very easy to reproduce (see the ExctendsContentIntoTitleBar issue for steps) and causes much trouble.

wbokkers avatar May 23 '25 18:05 wbokkers

Issues https://github.com/microsoft/microsoft-ui-xaml/issues/10357 / https://github.com/microsoft/microsoft-ui-xaml/issues/10067 / https://github.com/microsoft/microsoft-ui-xaml/issues/10529 and https://github.com/microsoft/microsoft-ui-xaml/issues/10572 seem to be related.

wbokkers avatar May 23 '25 18:05 wbokkers

It would be good if the issues would be combined in the internal system at Microsoft so the issue gets the appropriate visibility/priority

whiskhub avatar May 23 '25 19:05 whiskhub

In my case, removing ExtendsContentIntoTitleBar from child windows resolved the issue. There is no flickering after a child window is hidden or minimized.

NGeras avatar Jun 05 '25 06:06 NGeras

Still not fixed in 1.7.3 Please fix asap. It is the top issue our (many!) customers see in WindowsAppSDK.

wbokkers avatar Jun 12 '25 10:06 wbokkers

Please fix this issue as it's blocking our release cycles

paulenascut avatar Jul 30 '25 07:07 paulenascut

Please fix this issue it's blocking the project I work on!

skalsi-pexip avatar Sep 01 '25 12:09 skalsi-pexip

Seems fixed in 1.8.0 (stable) as indicated in the release notes. I can't reproduce the bug any more.

DHancock avatar Sep 09 '25 21:09 DHancock