[feature-requests:#1581] Weird behavior upon click inside selected text when drag-and-drop is disabled
Status: open
Group: Initial
Labels: drag-and-drop
Created: Fri Mar 06, 2026 09:58 AM UTC by Nathaniel Braun
Last Updated: Fri Mar 06, 2026 09:58 AM UTC
Owner: nobody
As a follow-up to #184, the Scintilla-based text editors I tested (SciTE and Notepad++) exhibit the following behavior when drag-and-drop is disabled: when some text is selected, then the user presses the left button (but does not release it) inside the selected text, the selection is shortened, and can then be adjusted with the mouse while the left button is pressed. However, upon releasing the left button, no text is selected anymore. Other text editors do away with the selection when the left button is pressed (when drag-and-drop is disabled).
I believe Scintilla's behavior be updated to match other text edirots when drag-and-drop is disabled.
Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/feature-requests/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
[feature-requests:#1581] Weird behavior upon click inside selected text when drag-and-drop is disabled
Status: accepted
Group: Initial
Labels: drag-and-drop scintilla
Created: Fri Mar 06, 2026 09:58 AM UTC by Nathaniel Braun
Last Updated: Fri Mar 06, 2026 09:58 AM UTC
Owner: nobody
@nyamatongwe here is a patch that fixes the issue. I successfully tested it with Notepad++.
Attachments:
[feature-requests:#1581] Weird behavior upon click inside selected text when drag-and-drop is disabled
Status: accepted
Group: Initial
Labels: drag-and-drop scintilla
Created: Fri Mar 06, 2026 09:58 AM UTC by Nathaniel Braun
Last Updated: Fri Mar 06, 2026 08:34 PM UTC
Owner: nobody
Committed with [d30047].
[feature-requests:#1581] Weird behavior upon click inside selected text when drag-and-drop is disabled
Status: accepted
Group: Initial
Labels: drag-and-drop scintilla
Created: Fri Mar 06, 2026 09:58 AM UTC by Nathaniel Braun
Last Updated: Sun Mar 08, 2026 07:10 AM UTC
Owner: nobody
[feature-requests:#1581] Weird behavior upon click inside selected text when drag-and-drop is disabled
Status: accepted
Group: Committed
Labels: drag-and-drop scintilla
Created: Fri Mar 06, 2026 09:58 AM UTC by Nathaniel Braun
Last Updated: Mon Mar 09, 2026 09:07 AM UTC
Owner: nobody
if (dragDropEnabled && !sel.Range(selectionPart).Empty()) {
inDragDrop = DragDrop::initial;
}
[feature-requests:#1581] Weird behavior upon click inside selected text when drag-and-drop is disabled
Status: accepted
Group: Committed
Labels: drag-and-drop scintilla
Created: Fri Mar 06, 2026 09:58 AM UTC by Nathaniel Braun
Last Updated: Mon Mar 09, 2026 09:08 AM UTC
Owner: nobody
[feature-requests:#1581] Weird behavior upon click inside selected text when drag-and-drop is disabled
Status: accepted
Group: Committed
Labels: drag-and-drop scintilla
Created: Fri Mar 06, 2026 09:58 AM UTC by Nathaniel Braun
Last Updated: Mon Mar 09, 2026 09:55 AM UTC
Owner: nobody