-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Dock floated tool window cant be docked #319
Comments
I do not use yet 11.1 betas and those contain breaking changes. Do either you can fix yourself them or wait for official release. The other question is why it got broken and maybe it's just Avalonia bugs. |
Thanks for answer. I will try investigate this myself ( its bug or behavior change planed with 11.1). With newest Official everything works fine. |
last version with proper behavior is 11.1.999-cibuild0043540-beta or this? AvaloniaUI/Avalonia@9708426 |
Yeah that looks like it might broke the drag |
i checked and AvaloniaUI/Avalonia@36e7ab5 is causing this issue.. if (e.Pointer.IsPrimary)
{
// SendMessage's return value is dependent on the message send. WM_SYSCOMMAND
// and WM_LBUTTONUP return value just signify whether the WndProc handled the
// message or not, so they are not interesting
SendMessage(_hwnd, (int)WindowsMessage.WM_SYSCOMMAND, (IntPtr)SC_MOUSEMOVE, IntPtr.Zero);
SendMessage(_hwnd, (int)WindowsMessage.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero);
}
else
{
throw new InvalidOperationException("BeginMoveDrag Failed");
} but Dispatcher.UIThread.Post introduced by this commit causing problem.... |
...And from Dock perpective: Dock/src/Dock.Avalonia/Controls/HostWindow.axaml.cs Lines 102 to 107 in 9cded63
BeginMoveDrag with new (dispatcher) implemetation immediatly returns and this fires on windows platforms EndDrag(e). Old BeginMoveDrag... |
FYI -> |
I don't think EndDrag was needed there at all: #327 |
Hi.
On current master (11.1.999-cibuild0045533-beta) floated tool window cannot be docked.
11.0.9
11.1.999-cibuild0045533-beta
no drop indicator is visible.
11.1.999-cibuild0045533-beta is prerelase but maybe this will be hapefull for you.
PS Thanks for so great project !
The text was updated successfully, but these errors were encountered: