1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Improved dragging list view items

This commit is contained in:
Brian Fiete 2021-02-08 08:51:02 -08:00
parent fd001a2f69
commit 66adc12f73
2 changed files with 8 additions and 0 deletions

View file

@ -796,6 +796,13 @@ namespace Beefy.theme.dark
mDragKind = .None;
}
if (Math.Abs(dY) < mSelfHeight * 0.21f)
{
mDragKind = .None;
mDragTarget = null;
return;
}
delete mCurDragEvent;
mCurDragEvent = new DragEvent();
mCurDragEvent.mX = x;

View file

@ -1740,6 +1740,7 @@ namespace IDE.ui
evt.mDragKind = .After;
dragTarget = (WatchListViewItem)dragTarget.mParentItem;
evt.mDragTarget = dragTarget;
return;
}
if ((dragTarget.mLabel == "") && (dragKind == .After))
dragKind = .Before;