Merge pull request #49310 from foxydevloper/add-drag-threshold-select-mode

Prevent accidental drags by adding drag distance threshold
This commit is contained in:
Rémi Verschelde 2021-06-15 15:34:28 +02:00 committed by GitHub
commit 9f8d892e4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 15 deletions

View file

@ -206,6 +206,7 @@ private:
DRAG_ANCHOR_BOTTOM_RIGHT,
DRAG_ANCHOR_BOTTOM_LEFT,
DRAG_ANCHOR_ALL,
DRAG_QUEUED,
DRAG_MOVE,
DRAG_MOVE_X,
DRAG_MOVE_Y,
@ -379,6 +380,7 @@ private:
Control *top_ruler;
Control *left_ruler;
Point2 drag_start_origin;
DragType drag_type;
Point2 drag_from;
Point2 drag_to;