May 01, 2025 · 6 min read
Eraser and Selection Mechanics in CoSketch
How a collaborative canvas tracks erasing and selection states.
CoSketch uses a small state machine for pointer events so every interaction maps to a predictable transition that syncs across collaborators.
This article explains how the eraser tool calculates hit regions, queues updates, and resolves conflicts in real time.
You will also see how selection metadata stays stable for multiple users without flicker or out-of-order updates.