Two-Dimensional Panning with CSS scroll-axis-lock: none

Pan or scroll the 2D surface below using a trackpad or touchscreen (whether moving diagonally or changing direction mid-gesture, such as in a circle or L-shape). Setting scroll-axis-lock: none prevents the browser's axis-locking ("railing") heuristic from kicking in and locking the gesture to a single axis.

Note: Your browser does not natively support scroll-axis-lock: none. When none is selected below, this demo activates the JavaScript fallback (applying raw wheel and pointermove deltas to scrollLeft and scrollTop).
scroll-axis-lock:
Waiting for scroll...
Recent Input Δ: 0, 0
Recent Scroll Δ: 0, 0
Canvas Center (1500, 1500)