← Previous Next →

Scrawl-canvas v8 - Canvas test 037

Pan and zoom using a Picture entity

Use the mouse scroll button to zoom the canvas display, and drag/drop to pan around the display

To note: Javascript is not running in this browser environment. Our apologies, but this demo has not yet been updated to support progressive enhancement.

Test purpose

Touch test: TODO: find a way to allow touch users to zoom in on the image while not zooming the rest of the browser output; differentiate between single touch (pan dragging) and multiple touches (for zoom/pinch)

Annotated code