[BUG] - long press without selection opens the toolbar AND closes it again immidiately #2481
Labels
area_supereditor
Pertains to SuperEditor
bounty_junior
f:superlist
Funded by Superlist
time:2
type_bug
Something isn't working
Package Version
super_editor, GitHub, stable
User Info
individual
To Reproduce
Steps to reproduce the behavior:
Minimal Reproduction Code
Simply use the example app, no change needed.
Actual behavior
The Toolbar opens and closes, making it impossible to tap one of the buttons
Expected behavior
The long-press should open the toolbar and only close it when taping somewhere else again. That allows actually pressing a button on the toolbar.
Platform
Android, did not investigate others, may be relevant there too.
Flutter version
Flutter 3.27.1, Dart 3.6.0
Screenshots
See the video:
long_press_issue.mp4
Additional context
At first glance, it looks like the following like is incorrect and should be removed to fix this:
super_editor/super_editor/lib/src/default_editor/document_gestures_touch_android.dart
Line 731 in 583d978
with more context visible, the following line seems to be incorrect, which is also what i did in the video:
The text was updated successfully, but these errors were encountered: