Skip to content
  1. Examples

Scroll to pan

This example shows the scroll-to-pan option for the viewport zooming. If enabled, the viewport will zoom in or out when the user uses the scroll gesture on the trackpad. If you press Ctrl/Cmd while scrolling, the viewport will zoom instead of panning.