zCanvas : Layers and pointer interactions

Demo features : multiple nested Sprites (the circles) and restricted movement (the rectangle).

The circles can be dragged; the red circles are parents to the green circles. Dragging them moves their child with them. Dragging the green circle will not move the red parent.

The rectangle is also draggable but constrained to the bottom right part of the canvas (illustrated by the thin red outline).

zCanvas supports multi touch support so you can drag multiple objects using multiple fingers.