Infinite Drag Canvas

group .........
Galleries and grids

── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────

A grid you can throw in any direction that never runs out. Tiles are keyed by column and row, built as the viewport approaches and destroyed once it passes, with the buffer biased toward the direction of travel so a fast fling still arrives on populated space. Release keeps the last measured velocity and coasts. Clicking a tile hides the original, spawns a free copy at its exact screen box, and grows it to a centered plate, so the expand starts where you clicked.

── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────

  • * The buffer leans into the throw

    The build window is offset 300px toward the direction of travel, so tiles exist before they are needed on the leading edge and are torn down behind, which is what keeps a hard fling from arriving on empty space.

  • * Rebuild is throttled two ways

    Tiles are only recomputed after 100px of movement or 120ms, whichever comes first, so a slow drag does not rebuild the grid every frame.

  • * Expand starts from the real box

    The clicked tile's screen rect is measured and the free copy is placed there before growing, so the plate appears to lift out of the grid rather than fading in at the middle.