singerdmx / flutter-quill

Rich text editor for Flutter
https://pub.dev/packages/flutter_quill
MIT License
2.6k stars 839 forks source link

Two cursors after using iOS space scroll gesture #2162

Closed vishna closed 3 months ago

vishna commented 3 months ago

Is there an existing issue for this?

Flutter Quill version

10.4.7

Steps to reproduce

Use space scroll gesture (video below)

https://github.com/user-attachments/assets/cc4b606c-f374-45ed-ba1f-2ea7a05f80cd

Expected results

There is just one cursor where I scrolled

Actual results

There are two cursors

Code sample

Code sample ```dart [Paste your code here] ```

Additional Context

Screenshots / Video demonstration [Upload media here]
Logs ```console [Paste your logs here] ```
vishna commented 3 months ago

The responsible class here for drawing the cursor is FloatingCursorPainter and it is drawn whenever _floatingCursorRect is not null.

It turns out this behavior can be disabled via QullEditorConfigurations.floatingCursorDisabled