Skip to content

Don't show D&D target cursor for original text selection #21158

Closed

Description

Testing #21012:

  • select some text
  • start D&D operation
  • move the mouse pointer (which marks the drop target location) over the original text

Observe: the dotted cursor is shown but if you end the D&D operation by releasing the mouse button, nothing happens.

Since the original selected text is not a valid drop target, no dotted cursor should be shown.

Activity

  1. rebornix commented on Feb 22, 2017

    @rebornix
    Contributor

    This behavior is aimed to be backwards compatible. Without Drag and Drop, clicking on a selection will move the cursor to the place your click. So right now with Drag and Drop, if you click on a selection, move it around and drop it inside the selection, we still shrink the selection to the place where the target is.

    dnd

    So IMHO, we can either

    • Stick with current behavior, or
    • Do not show dotted cursor if the target is inside the selection, and when users release the mouse, keep the selection instead of shrinking it.

    Let me know if my explanation makes sense.

  2. weinand commented on Feb 22, 2017

    @weinand
    ContributorAuthor

    I suggest to use the second option:

    • It gives the correct feedback that there is no target
    • it is the same behaviour that you find in other text editors.
  3. rebornix commented on Feb 23, 2017

    @rebornix
    Contributor

    Right now as we can't distinguish a pure mouse down event and a drag event in DND contribution, we always shrink the selection if the dnd target or the mosuedown target is inside the selection.

    I'll make enhancement to this part together with #21320 .

  4. added
    verification-needed
    on Mar 6, 2017
  5. locked and limited conversation to collaborators on Nov 18, 2017
  6. added a commit that references this issue on Sep 6, 2026
    f31031a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

verification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions