[scintilla:feature-requests] #1581 Weird behavior upon click inside selected text when drag-and-drop is disabled

0 views
Skip to first unread message

Nathaniel Braun

unread,
Mar 6, 2026, 4:58:15 AM (4 days ago) Mar 6
to scintill...@googlegroups.com

[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.

Neil Hodgson

unread,
Mar 6, 2026, 3:34:51 PM (3 days ago) Mar 6
to scintill...@googlegroups.com
  • labels: drag-and-drop --> drag-and-drop, scintilla
  • status: open --> accepted

[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

Nathaniel Braun

unread,
Mar 8, 2026, 3:10:55 AM (2 days ago) Mar 8
to scintill...@googlegroups.com

@nyamatongwe here is a patch that fixes the issue. I successfully tested it with Notepad++.

Attachments:

  • 1581.patch (393 Bytes; application/octet-stream)

[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

Neil Hodgson

unread,
Mar 9, 2026, 5:08:04 AM (20 hours ago) Mar 9
to scintill...@googlegroups.com

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

Neil Hodgson

unread,
Mar 9, 2026, 5:08:12 AM (20 hours ago) Mar 9
to scintill...@googlegroups.com
  • Group: Initial --> Committed

[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

Zufu Liu

unread,
Mar 9, 2026, 5:55:14 AM (19 hours ago) Mar 9
to scintill...@googlegroups.com
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

Nathaniel Braun

unread,
Mar 9, 2026, 8:39:20 AM (16 hours ago) Mar 9
to scintill...@googlegroups.com

Fair point. Here is the patch.

Attachments:

  • 1581.patch (520 Bytes; application/octet-stream)

[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

Reply all
Reply to author
Forward
0 new messages