I'm having odd problems with RadzenDialog dragging capabilities. When I open a page as a dialog (DailogService.OpenAsync) with Resizable and Draggable dialog options, initially the popup can't be dragged. If I resize it then dragging works, but if I start to drag it faster at some point the popup gets stuck to the mouse pointer and doesn't stop to drag when the mouse button is released.
It seems these dragging problems are related to the razor component that is rendered in the popup dialog, because with simpler ones dragging works as expected. Also on your demo page no such problems, but I'll appreciate any help if some one has an Idea what could be causing the described behavior!
Here is the code of such razor componen, shown in dialog:
More to the described problems... As can be checked on the demo page ("Open page as a dialog"), dragging a dialog works on FF but when I downloaded the source code from GitHub and ran the app in debug on Edge, dragging of the dialogs didn't work. Same run in debug on FF and Chrome - dragging works only horizontally.
In the demo site (Blazor Dialog component), when opened on Edge, again dialog can be dragged only horizontally, while on FF and Chrome dragging works as expected.
That issue with dialog dragging still persists and is really annoying. I'm testing on 3 different browsers on 3 different PCs and can't find consistent behavior. In most cases the dialog moves only horizontally. In some case (on Chrome or Edge) it starts to move as expected but after few seconds of constant dragging, releasing and then dragging again, the dialog sticks to the cursor and continues to move after releasing the mouse button.
The dialog start to move on any direction if prior dragging it is resized a bit, but that sticking to the cursor, described above still happens.
Can you please test for such behavior where the dialog sticks to the mouse pointer?
The vertical drag functionalities only starts work when a vertical resize of the dialog occurs.
And also, if a text selection is happening under the cursor (inside the dialog itself) when you try to drag, the drag event remains "sticked" and only way to resolve is push "exit" on keyboard.
Also tryed on three different browsers (chrome, edge, firefox) updated to the last available version on a updated windows 10.
Have you any suggestion/workaround to apply?
Thanks in advance
EDIT: if the console is open (F12) when the dialog is displayed, dragging works correctly immediately
Unfortunately we are still unable to reproduce such issue on any of our machines using up to date Edge.
You can attach the source code of Radzen.Blazor to your project to debug your case. If you think there is a bug and you have a fix you can submit pull request - we will review it and if it doesn't brake anything it will be merged.