[GH-ISSUE #3515] [Bug] Mouse highlight always starts from the block's beginning #1589

Closed
opened 2026-03-23 20:51:23 +00:00 by mirror · 2 comments
Owner

Originally created by @laszukdawid on GitHub (Sep 24, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3515

Bug Description

When highlighting with mouse, regardless where in text I start highlighting, the highlight will begin with the line. Single click within text will move the coursor there. Then, if I press'n'drag, within milliseconds the cuoursor jumps to the beginning of the line, disappears and highlight is stretch from the line's start to the current position.

Additionally, I can't seem to be able to drag blocks around. When hovering over the "lift" icon (6 dots in two columns), the coursor changes icon to the hand, but drag'n'move only highlights the text.

Double click on a word correctly highlights just the word. I can extend the highlight by individual characters with Shift + left/right arrow.

How to Reproduce

I just installed the program. As I was following the first page, I ticket the checkbox and then tried to highlight something.

Expected Behavior

Highlight should start with the drag initiation and finish at lifting a click.

Operating System

Ubuntu 22.04 LTS

AppFlowy Version(s)

0.3.2

Screenshots

No response

Additional Context

As I was trying to see some other effects, I can tell that font and theme don't change the behaviour. I can correctly format the text that's highlight.

Originally created by @laszukdawid on GitHub (Sep 24, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3515 ### Bug Description When highlighting with mouse, regardless where in text I start highlighting, the highlight will begin with the line. Single click within text will move the coursor there. Then, if I press'n'drag, within milliseconds the cuoursor jumps to the beginning of the line, disappears and highlight is stretch from the line's start to the current position. Additionally, I can't seem to be able to drag blocks around. When hovering over the "lift" icon (6 dots in two columns), the coursor changes icon to the hand, but drag'n'move only highlights the text. Double click on a word correctly highlights just the word. I can extend the highlight by individual characters with Shift + left/right arrow. ### How to Reproduce I just installed the program. As I was following the first page, I ticket the checkbox and then tried to highlight something. ### Expected Behavior Highlight should start with the drag initiation and finish at lifting a click. ### Operating System Ubuntu 22.04 LTS ### AppFlowy Version(s) 0.3.2 ### Screenshots _No response_ ### Additional Context As I was trying to see some other effects, I can tell that font and theme don't change the behaviour. I can correctly format the text that's highlight.
Author
Owner

@laszukdawid commented on GitHub (Sep 24, 2023):

I just checked and 0.3.1 doesn't have that problem, i.e. I can highlight text anywhere.

Dragging blocks, however, doesn't work.

<!-- gh-comment-id:1732444855 --> @laszukdawid commented on GitHub (Sep 24, 2023): I just checked and `0.3.1` doesn't have that problem, i.e. I can highlight text anywhere. Dragging blocks, however, doesn't work.
Author
Owner

@annieappflowy commented on GitHub (Dec 21, 2023):

#3980

<!-- gh-comment-id:1866884689 --> @annieappflowy commented on GitHub (Dec 21, 2023): #3980
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#1589
No description provided.