Skip to content
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]:setBounds is not work when dragging the window all the way #33279

Closed
3 tasks done
CahierX opened this issue Mar 15, 2022 · 3 comments · Fixed by #33288
Closed
3 tasks done

[Bug]:setBounds is not work when dragging the window all the way #33279

CahierX opened this issue Mar 15, 2022 · 3 comments · Fixed by #33288

Comments

@CahierX
Copy link

CahierX commented Mar 15, 2022

Preflight Checklist

Electron Version

16.0.9

What operating system are you using?

Windows

Operating System Version

windows 10 pro 20H2

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

setBounds is work when dragging the window all the way

Actual Behavior

setBounds is not work when dragging the window all the way

Testcase Gist URL

https://gist.github.com/6b6ea5cdaa1883656a8bd0bf89195283

Additional Information

No response

@codebytere
Copy link
Member

Please further describe the issue - "dragging the window all the way" is not sufficient to determine what needs to be done to reproduce.

@codebytere codebytere added the blocked/need-repro Needs a test case to reproduce the bug label Mar 15, 2022
@CahierX
Copy link
Author

CahierX commented Mar 16, 2022

Please further describe the issue - "dragging the window all the way" is not sufficient to determine what needs to be done to reproduce.

When the program calls setBounds, the left mouse button clicks on the window without loosening, and drags left and right

2022-03-16.10.32.52.mov

@codebytere
Copy link
Member

codebytere commented Mar 16, 2022

This is a longstanding upstream bug: https://bugs.chromium.org/p/chromium/issues/detail?id=251813

However, i can likely trivially implement option 2:

Drag completes ignoring the bounds update but the bounds update is queued and then executed after drag completes.

I'll open a PR and solicit feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants