Skip to content
  1. Examples
  2. Interaction
  3. Hold space to drag

Hold space to drag ​

This example shows how to use the keydown event to enable dragging the viewport by holding the 'Space' key.

Hold 'Space' key to drag the viewport.