Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text highlighting/selection issue with Flutter 3.27.2 #2450

Open
1 task done
bloemy7 opened this issue Jan 22, 2025 · 8 comments
Open
1 task done

Text highlighting/selection issue with Flutter 3.27.2 #2450

bloemy7 opened this issue Jan 22, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@bloemy7
Copy link

bloemy7 commented Jan 22, 2025

Have you checked for an existing issue?

Flutter Quill Version

10.8.5

Steps to Reproduce

  1. Setup project with flutter-quill when running flutter version 3.27.2
  2. Try highlighting text to select it

Expected results

Expecting to be able to smoothly select text

Actual results

Almost impossible to select text as it auto-select multiple lines in a very buggy way

Additional Context

The issue seems to be around the precision of the cursor when selecting a line. If you put it exactly at the height of a line, it acts as if it was already slightly above the line, and so it automatically selects the full line. This makes the entire experience impossible to properly control.

I have downgraded Flutter to 3.27.1 and 3.27.0, but there when selecting text it doesn't show the resulting highlight as you are dragging, only once you release the drag, which is not a good experience either.

Any ideas?

@bloemy7 bloemy7 added the bug Something isn't working label Jan 22, 2025
@EchoEllet
Copy link
Collaborator

10.8.5

Could you try with 11.0.0-dev.20 (or later) as the magnifier has been removed and related issues have been fixed.

@bloemy7
Copy link
Author

bloemy7 commented Jan 22, 2025

Hi @EchoEllet, just tried with 11.0.0-dev.21, and it's still happening for me unfortunately.

Screen.Recording.2025-01-21.at.10.29.06.PM.mov

Any other ideas? Thanks!

@EchoEllet
Copy link
Collaborator

Is this issue encounterable on Android and iOS, or is this a desktop specific issue?

@bloemy7
Copy link
Author

bloemy7 commented Jan 22, 2025

For now we have only seen it on web but I have not tried on the native apps yet, I can get you that information tomorrow.

The main problem we have is that we have the Flutter bug with iOS 18.2 which means that scrolling on iOS web does not work since we still run Flutter 24, but upgrading to 27 causes this issue so I’m stuck in between both. Any help would be amazing!

@jonasbernardo
Copy link

I tested it here, on Android the selection with a bluetooth mouse works normally, the problem only happens in the web version, another problem is also when clicking on empty lines, the cursor always appears on the top line and not on the clicked line, but it needs to be between two text when there is an empty space

@jonasbernardo

This comment has been minimized.

@jonasbernardo
Copy link

These 2 problems are big, which makes the web version very difficult to use, it should be fixed urgently
@EchoEllet
@CatHood0

@EchoEllet
Copy link
Collaborator

The main problem we have is that we have the Flutter bug with iOS 18.2 which means that scrolling on iOS web does not work since we still run Flutter 24

Is this a different issue than the text selection?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants