[GH-ISSUE #4278] [Bug] Incorrect selection of text #1907

Open
opened 2026-03-23 21:18:10 +00:00 by mirror · 4 comments
Owner

Originally created by @PeterHero on GitHub (Jan 2, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4278

Bug Description

When selecting a word and then dragging, the first word is only partially selected.

How to Reproduce

  1. Double click a word and drag to select more words

Expected Behavior

The first word should be completely selected.

Operating System

Linux

AppFlowy Version(s)

0.4.0

Screenshots

issue2

Additional Context

Suggestion: This type of selection can toggle selection by words not only characters. That would solve the issue.

Originally created by @PeterHero on GitHub (Jan 2, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4278 ### Bug Description When selecting a word and then dragging, the first word is only partially selected. ### How to Reproduce 1. Double click a word and drag to select more words ### Expected Behavior The first word should be completely selected. ### Operating System Linux ### AppFlowy Version(s) 0.4.0 ### Screenshots ![issue2](https://github.com/AppFlowy-IO/AppFlowy/assets/115150415/c87a782b-d199-482d-ab54-75c860f3df5c) ### Additional Context Suggestion: This type of selection can toggle selection by words not only characters. That would solve the issue.
Author
Owner

@LucasXu0 commented on GitHub (Jan 2, 2024):

Double click a word and hold to select it

Is this normal on desktop platforms? I think it should only happen on mobile platforms.

<!-- gh-comment-id:1874139403 --> @LucasXu0 commented on GitHub (Jan 2, 2024): > Double click a word and hold to select it Is this normal on desktop platforms? I think it should only happen on mobile platforms.
Author
Owner

@PeterHero commented on GitHub (Jan 2, 2024):

It is meant as double click and not release the button so i can continue to select. I updated the description

<!-- gh-comment-id:1874143635 --> @PeterHero commented on GitHub (Jan 2, 2024): It is meant as double click and not release the button so i can continue to select. I updated the description
Author
Owner

@Xazin commented on GitHub (Jan 2, 2024):

What you mean is, when double click on a word, and don't release, then you start dragging, if you clicked halfway on the word, the selection jumps from the whole word when dragging, to the position of the cursor where drag was initiated.

On desktop, what should happen:

  1. You double click halfway on a word, and hold the click
  2. You drag the mouse to start selecting words
  3. Whole words are now selected, and the whole word at the beginning is also selected.

Something like this.

<!-- gh-comment-id:1874167863 --> @Xazin commented on GitHub (Jan 2, 2024): What you mean is, when double click on a word, and don't release, then you start dragging, if you clicked halfway on the word, the selection jumps from the whole word when dragging, to the position of the cursor where drag was initiated. On desktop, what should happen: 1. You double click halfway on a word, and hold the click 2. You drag the mouse to start selecting words 3. Whole words are now selected, and the whole word at the beginning is also selected. Something like this.
Author
Owner
<!-- gh-comment-id:2390460104 --> @annieappflowy commented on GitHub (Oct 3, 2024): https://github.com/user-attachments/assets/229a13c1-84c8-4ad9-8671-07d279f2f6e3 https://github.com/user-attachments/assets/47be2302-23ef-4632-b1b8-c41ed6b06542
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1907
No description provided.