Desktop
You can rotate the 3D cube by dragging with the left mouse button, move it horizontally or vertically by dragging with the middle or right mouse button, and zoom in or out using the mouse wheel.
Touchscreen
Rotate the cube by dragging with one finger, and zoom in or out by pinching with two fingers.
Inspired by developer.mozilla.org