graph-cn / flutter_graph_view

An open source project which can display beautiful graph data structure, such as force-directed.
https://graph-cn.github.io/flutter_graph_view/
Apache License 2.0
51 stars 12 forks source link

Fix usage of both Scale and Pan on mobile platforms. (remove PanDetector, because it causes conflicts with ScaleDetector) #12

Closed muknta closed 3 months ago

CorvusYe commented 4 months ago

@muknta Thanks for your PR, I haven't followed mobile devices before.

Could you help confirm if the dragging of vertexes and the dragging of blank areas are effective on the PC platforms? It seems that both functions do not work on my end.

muknta commented 4 months ago

@muknta Thanks for your PR, I haven't followed mobile devices before.

Could you help confirm if the dragging of vertexes and the dragging of blank areas are effective on the PC platforms? It seems that both functions do not work on my end.

@CorvusYe Yeap, I can confirm that your desktop base code is working great. I was needed to override lots of classes/components/models for my realization, but your base code doesn't conflict with my custom solution as the PanDetector does here.

CorvusYe commented 3 months ago

@muknta Sorry for the delay in processing it.

The latest submitted file makes the translation on the computer very smooth. Thank you very much for your work.