-
Notifications
You must be signed in to change notification settings - Fork 776
Open
Labels
bugSomething isn't workingSomething isn't workingneeds-triageIssue needs to be triaged by the area ownersIssue needs to be triaged by the area owners
Description
Describe the bug
I have a button to open a modal window with OverlappedPresenter using AppWindow, the mouse pointer of the button is still captured, and its events (PointerEntered and PointerExited) are constantly triggered when the modal window is opened.
Why is this important?
PointerEnteredandPointerExitedevent of the button are triggered constantly- Clicking the buttons from the modal window is sometimes not triggered (because the mouse pointer is still captured by the original button)
Steps to reproduce the bug
This can reproduce with WinUI 3 Gallery
- Open WinUI 3 Gallery, go to Windowing > AppWindow
- Click the "Show modal window" button
- Move cursor to the modal window
- The "Show modal window" button is flashing (it's a bit hard to see because of the button background)
- The issue stops only if you move your cursor out of the owner window, or make it lost focus
Actual behavior
The "Show modal window" button is flashing (it's a bit hard to see because of the button background)
Expected behavior
- The "Show modal window" button is not flashing
- The "Show modal window" button does not trigger
PointerEnteredandPointerExitedevent
Screenshots
Please look closely to the background of the "Show modal window" button, it's a bit hard to see because of the button background.
Recording.2025-09-06.120758.mp4
NuGet package version
WinUI 3 - Windows App SDK 1.8.1
Windows version
Windows 11 (24H2): Build 26100
Additional context
The issue can be reproduced with WinUI 3 Gallery v2.7.0, see the video here: #10758 (comment)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds-triageIssue needs to be triaged by the area ownersIssue needs to be triaged by the area owners