ButchersBoy / Dragablz

Dragable and tearable tab control for WPF
http://dragablz.net
MIT License
2.2k stars 323 forks source link

Dragging a tab to the screen's edges or corners won't snap its window. #241

Open singularity0821 opened 4 years ago

singularity0821 commented 4 years ago

When tearing a tab off a window, it won't use Windows Snap to snap it to the screen's edges or corners.

So in order to snap a tab to one side of the screen, I need to tear it off the window, release the mouse button and then click the title bar to drag the new window to the edge of the screen, which is not ideal.

Many users know and expect this behavior from their web browser so it would be great if Dragablz would support this as well.

In my opinion this issue is caused by the way that Dragablz handles window movement by listening to the thumb's drag event and setting the window position relative to the drag delta. Snapping would work if the window would be moved directly by capturing the mouse.