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

PanOnScrollMode

Source on GitHub 

The PanOnScrollMode enum controls the panning behavior of the viewport when the user scrolls. Choose Free for unrestricted panning, Vertical for up-and-down only, or Horizontal for left-and-right only.

enum PanOnScrollMode { Free = 'free', Vertical = 'vertical', Horizontal = 'horizontal', }
Last updated on