Reference
PanOnScrollMode

PanOnScrollMode

Source on GitHub (opens in a new tab)

This enum is used to set the different modes of panning the viewport when the user scrolls. The Free mode allows the user to pan in any direction by scrolling with a device like a trackpad. The Vertical and Horizontal modes restrict scroll panning to only the vertical or horizontal axis, respectively.

export enum PanOnScrollMode {
  Free = 'free',
  Vertical = 'vertical',
  Horizontal = 'horizontal',
}