Skip to Content
React Flow 13 is here! Read the announcement →
ReferenceTypes

OnMoveStart

Source on GitHub 

The OnMoveStart type is a callback that fires whenever the viewport begins to move, either through user interaction or programmatically. It receives the triggering event and the new viewport state.

It is an alias of the general OnMove callback.

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