aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNathaniel Braun <unknown>2026-03-09 16:22:44 +1100
committerNathaniel Braun <unknown>2026-03-09 16:22:44 +1100
commit20184b70992e72b4ad26f93284f9654cb29c01e2 (patch)
treec80c50e78a477415c38e97f007f7f456c3ac307f /src
parent482a13cf879ae07a5f6c72fba84d994bde3a4852 (diff)
downloadscintilla-mirror-20184b70992e72b4ad26f93284f9654cb29c01e2.tar.gz
Feature [feature-requests:#1581]. Improve mouse drag behaviour when drag and
drop disabled to deselect on mouse down.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 0289fa5e5..318131110 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4920,7 +4920,9 @@ void Editor::ButtonDownWithModifiers(Point pt, unsigned int curTime, KeyMod modi
SetSelection(newPos, newPos);
}
if (!sel.Range(selectionPart).Empty()) {
- inDragDrop = DragDrop::initial;
+ if (dragDropEnabled) {
+ inDragDrop = DragDrop::initial;
+ }
}
}
}