mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed capture issue when cancelling tab drag
This commit is contained in:
parent
39b7309dd5
commit
ba2c63af9a
2 changed files with 11 additions and 2 deletions
|
@ -154,8 +154,8 @@ namespace Beefy.widgets
|
|||
{
|
||||
//mWidgetWindow.mMouseLeftWindowDelegate.Remove(scope => MouseLeftWindow, true);
|
||||
|
||||
if (mSrcDraggingWindow != null)
|
||||
mSrcDraggingWindow.mCaptureWidget = null;
|
||||
if ((mSrcDraggingWindow != null) && (mSrcDraggingWindow.mCaptureWidget != null))
|
||||
mSrcDraggingWindow.ReleaseMouseCaptures();
|
||||
|
||||
mTabbedView.mParentDockingFrame.GetRootDockingFrame().HideDragTarget(this, !mDragHelper.mAborted);
|
||||
if (mNewDraggingWindow != null)
|
||||
|
|
|
@ -679,6 +679,15 @@ namespace Beefy.widgets
|
|||
}
|
||||
}
|
||||
|
||||
public void ReleaseMouseCaptures()
|
||||
{
|
||||
if (mCaptureWidget == null)
|
||||
return;
|
||||
for (int32 btn < 3)
|
||||
MouseUp((int32)mMouseX, (int32)mMouseY, btn);
|
||||
mCaptureWidget = null;
|
||||
}
|
||||
|
||||
public override void MouseWheel(int32 inX, int32 inY, int32 delta)
|
||||
{
|
||||
float x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue