Skip to content
Drag

Grid demo

Carry the box to another square. Or focus it, press Space or Enter, use arrows to move, and press Space or Enter again to drop. Shift+arrows moves four squares; Escape restores the starting position.

Move me

Column 1, row 1

The demo keeps the box inside the surface. The engine reports the gesture; the example clamps coordinates, draws with a transform and commits on drop. This boundary behavior belongs to the app, not the engine.

Read the grid API for surfaces, toolbar sources and keyboard gestures.