-
Notifications
You must be signed in to change notification settings - Fork 841
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
Long Tap Selection Doesn't Trigger Selection (also Selection Handles) in iOS #2391
Comments
Can you confirm if this issue exists on older versions (before the magnifier feature #2026)? flutter_quill: 9.5.23 |
As I checked the code, this is because when device is iOS the library coded to not select in range when long tapped. It just pops up magnifier. But at the end of selection, it asks to copy or select all. Which doesn't seem like a good flow. I checked Cupertino behavior in other iOS apps. Long tap to select shows magnifier and also select the text in range. lib/src/editor/editor.dart:
A solution may be adding a parameter to decide the long tap select whether ranged or collapsed. Or maybe whatever the better for Cupertino behavior. |
My project is not compatible with older intl. So I couldn't directly test it. But it seems like the problem still was there on that version. Because it still selects position on long tap if it is iOS. Instead, i think it should select range. Am I wrong?
|
I'm not sure about this check either, it seems this is a platform-specific check that allows the use of
dependency_overrides:
flutter_quill: 9.5.23 Or try the example with version $ git clone --depth 1 --branch v9.4.0 https://github.com/singerdmx/flutter-quill.git
$ (cd flutter-quill/example && flutter run) If you confirm this is not an issue on older versions, we will have enough regressions to revert the magnifier feature in v11 (breaking change). We're still discussing this change though. |
I can confirm it was already not working on 9.5.23.
|
Is there an existing issue for this?
Flutter Quill version
10.8.5, also 11.0.0-dev.13
Steps to reproduce
Build a basic QuillEditor. Then build it on iOS, double tap to select works good, also triggers handles. But long tap to select will only show magnifier and copy, select all options after you end selecting. Same behavior in iPad. Mouse selection works good on iPad.
This is how my QuillEditor looks like:
Expected results
Everything is good on Android.
Recording_2024-11-21-14-36-45.mp4
Actual results
I double tap at 00:15
Untitled.mp4
Additional Context
When I long tap to select, it selects the text as collapsed
TextSelection.collapsed(offset: 244, affinity: TextAffinity.upstream, isDirectional: false)
The text was updated successfully, but these errors were encountered: