sminez / ad

an adaptable text editor
https://crates.io/crates/ad-editor
MIT License
264 stars 10 forks source link

Dragging the cursor back over itself using the mouse occasionally resets the selection #8

Closed sminez closed 1 month ago

sminez commented 2 months ago

Describe the bug

Sometimes dragging the cursor back over itself correctly updates the selection for the new unanchored end of the cursor but more often than not it can reset the selection to a new anchored character or drag the entire selection up and down rather than altering the end point

To Reproduce

https://github.com/user-attachments/assets/cecbaef3-b1fc-4886-af27-b45bd95b472e

Expected behavior

The initial starting character of the selection remains fixed and dragging via the mouse only updates the unanchored end of the selection.