Skip to Content
You are viewing the v12 docs of React Flow. You can find the latest version here.

OnMove

Source on GitHub 

The OnMove type is a callback that fires whenever the viewport is moved, either by user interaction or programmatically. It receives the triggering event and the new viewport state.

type OnMove = (event: MouseEvent | TouchEvent | null, viewport: Viewport) => void;
Parameters:
NameTypeDefault
eventMouseEvent | TouchEvent
viewportViewport
Returns:
void
Last updated on