You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't show D&D target cursor for original text selection #21158
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.
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.
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 .
Activity
rebornix commentedon Feb 22, 2017
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.
So IMHO, we can either
Let me know if my explanation makes sense.
weinand commentedon Feb 22, 2017
I suggest to use the second option:
rebornix commentedon Feb 23, 2017
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 .
Fix microsoft#21158. DND doesnt shrink selection if no dnd happens, D…