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:
parent
fd001a2f69
commit
66adc12f73
2 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue