Commit acd5015
committed
feat(workingset): switch files on mouse down for faster perceived switching
The file tree and editor tab bar switch files on mouse down, but the
working set only switched on mouse up, making it feel slow. Open the file
immediately on left-button press (unless the press is on the close icon)
and skip the duplicate open in the mouse up drop handler. Right/middle
click paths already resolved at mouse down and are unchanged; close via
the close icon still happens on mouse up without selecting the file.
A drag now makes the pressed item the current file as soon as it is
pressed, consistent with dragging tabs in other editors.
Claude-Session: https://claude.ai/code/session_018BpQ3Z7w4H2U5qrPGWYRWB1 parent 84bf98b commit acd5015
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
| 313 | + | |
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
| |||
789 | 790 | | |
790 | 791 | | |
791 | 792 | | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
792 | 797 | | |
793 | 798 | | |
794 | 799 | | |
| |||
864 | 869 | | |
865 | 870 | | |
866 | 871 | | |
867 | | - | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
868 | 882 | | |
869 | 883 | | |
870 | 884 | | |
| |||
0 commit comments