1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-13 22:04:09 +02:00

Fix for clicking inside selection

This commit is contained in:
Brian Fiete 2020-07-16 16:03:55 -07:00
parent e6f722bf7a
commit 54d107e334

View file

@ -19,6 +19,8 @@ namespace Beefy.widgets
public this(int startPos = 0, int endPos = 0) public this(int startPos = 0, int endPos = 0)
{ {
Debug.Assert(startPos >= 0);
Debug.Assert(endPos >= 0);
mStartPos = (int32)startPos; mStartPos = (int32)startPos;
mEndPos = (int32)endPos; mEndPos = (int32)endPos;
} }
@ -819,7 +821,7 @@ namespace Beefy.widgets
{ {
mDragSelectionUnion = null; mDragSelectionUnion = null;
if ((mDragSelectionKind == .ClickedInside) && (btn == 0)) if ((mDragSelectionKind == .ClickedInside) && (btn == 0))
mSelection = EditSelection(); mSelection = null;
mDragSelectionKind = .None; mDragSelectionKind = .None;
} }
} }