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:
parent
e6f722bf7a
commit
54d107e334
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue