New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: BrowserWindow's "moved" event isn't triggered when using aero snap #34741
Comments
@FlysoftBeta I attempted to run your gist on earlier versions and did not see this function as described in your expected behavior. Do you have a specific version you tested that worked? |
I tried it on 16.0.0 and it had the same behavior, and I test it on Windows 11. |
test.mp4Here is the test video |
This videos seems to indicate that it also did not display the expected behavior in 16.0.0. I tested on both Windows 11 and Windows 10 versions 20.0.0-beta.2 and 16.0.0 and did not see the event triggered in any of the cases. If there was no previous version in which the |
Yes, but I don't know why it doesn't even trigger the resized event... I need to change the layout by listening the resized event. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
repros in v22 with gist above |
Unfortunately, as stated in the linked feature request above, the OS does not provide this aero snap information to us. I will close this issue now, but if the information is provided in the future, then a new feature request can be submitted. |
Although the problem has not been solved yet, thanks for your efforts! |
Preflight Checklist
Electron Version
20.0.0-beta.2
What operating system are you using?
Windows
Operating System Version
Windows 11 version 22h2
What arch are you using?
x64
Last Known Working Electron version
all
Expected Behavior
The event should be triggered
Actual Behavior
When I use Win+LeftArrow, Win+RightArrow, or drag the window to the top of screen to move the window to one side, the window is moved, but its "moved" event is not triggered.
Testcase Gist URL
https://gist.github.com/6df4f13d195cabe34d1d35142e516b94
Additional Information
No response
The text was updated successfully, but these errors were encountered: