Commit 2793b54
committed
Snap and fix selections around list markers
Collapse accidental small selections inside the hidden indent/marker area and change the cursor affinity when collapsing (use -1). Additionally, detect real drag selections that enter the marker/widget zone and snap the head to a consistent boundary (range to item.markerFrom) to prevent jitter from CodeMirror alternating between widget boundaries during mouse moves.1 parent f44dd7f commit 2793b54
1 file changed
Lines changed: 15 additions & 4 deletions
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | 596 | | |
600 | 597 | | |
601 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
605 | 616 | | |
606 | 617 | | |
607 | 618 | | |
| |||
0 commit comments