Automattic / Automattic/simplenote-macos
Double-Click to select results in incorrect selection boundaries
- Dominant language
- Swift
- Stars
- 1.6k
- Forks
- 172
- Avg merge
- 11h 17m
- Merged PRs (30d)
- 3
Description
When double clicking to select by word, the results are direction dependent.
* Left-to-Right: the resulting selection is as expected
* Right-to-Left: the resulting selection leaves out the initially selected word
### Expected
When selecting from Right-to-Left via double-click, the originally selected word be included in the resulting selection range.
### Observed
When selecting from Right-to-Left via double-click, the originally selected word is not included in the resulting selection range.
### Reproduced
> 1. Create a note with multiple words.
> 2. Double click the last word.
> 3. Drag the mouse pointer to the left so that the selection range encompass earlier words.
> 4. Observe that the last word is no longer selected.
The screen recording below illustrates the difference between TextEdit (expected behavior) and Simplenote (unexpected behavior).

***(Optional)*** If you reproduced the bug on a specific system, please replace SYSTEM_MAKE, SYSTEM_MODEL, MACOS_VERSION, and APP_VERSION below with the details for that system. If you reproduced the bug on multiple systems, please add a row for each system.
Make|Model|macOS Version|App Version
-|-|-|-
.|.| 15.2 |2.23.0
Contributor guide
Research direction
Start by reproducing the issue in Simplenote for macOS using the listed steps: double-click the last word, then drag left across earlier words. Compare the right-to-left result with the expected TextEdit behavior shown in the recording. Done means the initially double-clicked word remains selected when the range is extended left, while left-to-right selection still behaves as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100