logo
By Lawrence

5 minutes

Click to Add a Hole

The player gets the holes the level hands out, and no more.

A click is a press that stays put

A click is a press and a release that stay within a few pixels of each other. Past that it is a drag. Hands shake, and the slop absorbs the shake. PointerDrag allows 6 CSS pixels:

pointer moved 4 px right, 4 px down    5.66 px    still a click
pointer moved 7 px right               7.00 px    a drag that missed, not a click

Continue reading

Unlock the Full Course

Every lesson, the runnable examples, and the finished build — yours to keep.

$9one-time

Was this page helpful?

We read every note — tell us what's working and what isn't.

↑↓ NavigateEnter SelectEsc CloseCtrl+K Open Search