autoPan property
Configuration for autopan behavior during drag operations.
Defaults to AutoPanConfig.normal, which enables autopan with balanced settings. The viewport will automatically pan when dragging elements near the edges.
Set to null to disable autopan entirely.
Example:
// Use fast autopan for large canvases
NodeFlowConfig(
autoPan: AutoPanConfig.fast,
)
// Disable autopan
NodeFlowConfig(
autoPan: null,
)
See AutoPanConfig for configuration options.
Implementation
final AutoPanConfig? autoPan;