This example illustrates how to scroll a diagram using vertical and horizontal scrollbars. The scroll limit property helps limit the scrolling area.
The scroll limit allows you to define the scrollable region of the Diagram while scrolling the page with a mouse. The scrollSettings scrollLimit property allows you to define the scrollable region of a Diagram. You may scroll inside the designated region if the scrollLimit is set to limited. When the scrollLimit is set to Diagram, you can scroll within the Diagram content. When the scrollLimit is set to Infinity, it allows infinite scrolling. The scrollSettings autoScrollBorder property is used to specify the distance from the edge of a control at which auto-scrolling should occur.