Nodette saysMouse events — mousedown, mouseup, mousemove, wheel — report position and buttons.
click is mousedown+mouseup on the same element. For finer control use mousedown/mouseup/mousemove, reading clientX/clientY (viewport) or offsetX/offsetY (element-relative). wheel reports scroll deltas. For drag-like interactions, prefer Pointer Events (next lesson) which unify mouse and touch.
Power-ups you unlock
mousedown/up/move and wheel
clientX/Y (viewport) vs offsetX/Y (element)
click = down+up on the same element
Prefer pointer events for drag (unifies input)
The Event Bubbler attacks — common mistakes
Tracking drags with mouse events only (ignores touch)
Confusing client vs offset coordinates
Heavy work in mousemove without throttling
Boss battleTrack the pointer’s position inside a box on mousemove.