Arokip / flutter_diagram_editor

Fllutter diagram editor library
MIT License
116 stars 38 forks source link

component class does not release onDoubleTap callback #39

Closed allanfann closed 4 months ago

allanfann commented 1 year ago

in my opinion, on PC or Mac platform, most people still use DoubleClick but currently the framework didn't provide such callback for developer to implement

Arokip commented 1 year ago

@allanfann Hello, sorry for my late answer. I am aware that double click is missing in the package but it has a reason. I implemented the gestures with GestureDetector and if you add click and double click for this widget in the same time then the on-click gesture is delayed by ~250ms because it's waiting if user clicks for the second time. I didn't want to have it in the project because there is a laggy feeling.

I am sure there is a different way how to manage it without the delay. If you know it, let me know!