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

Fix host windows dragging on Windows #327

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

BAndysc
Copy link
Contributor

@BAndysc BAndysc commented Mar 10, 2024

I am not sure why this EndDrag(e); was there in the first place, it looks like it doesn't serve any purpose. Tested on Windows and macOS and everything works good. The IsPointerOver check is also very wonky in Avalonia - when you drag a host window out of the screen (and keep dragging) and drag the window back - the IsPointerOver state is lost, even though the mouse is still over the chrome. I don't think the check is needed - the window position changed AND mouseDown conditions are only met if the user is dragging the window, right?

Fixes: #319, #315, #302

@wieslawsoltes wieslawsoltes merged commit 331661c into wieslawsoltes:master Mar 11, 2024
1 of 4 checks passed
@HendrikMennen
Copy link
Contributor

I remember that this behavior was different on Windows so EndDrag was needed. Seems like an Avalonia Update changed this

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

Successfully merging this pull request may close these issues.

Dock floated tool window cant be docked
3 participants