Closed aman-observo closed 3 days ago
I agree! It's a hardcoded value that could be replaced by a autoPanSpeed
for example.
In 12.0.0-next.26 we added an autoPanSpeed
prop.
autoPanSpeed
prop was released with React Flow 12! If you are using 11, you can find the migration guide here: https://reactflow.dev/learn/troubleshooting/migrate-to-v12
Problem facing: Currently when we drag the nodes to the boundaries of the viewport and
autoPanOnNodeDrag
is enabled, the pace of panning the canvas is very fast which sometimes leaves the content on the viewport illegible.Feature request: We would like to manually control & configure the speed of this panning process of the viewport.