Palm tests, erase fix, swipe-to-add, size dialog, grid settings, docs #12

Merged
reudy merged 6 commits from canvas-polish into main 2026-09-27 23:34:25 +02:00
Showing only changes of commit abb11ad407 - Show all commits

View file

@ -442,7 +442,8 @@
live = null;
if (e.type === 'pointerup') doc.addStroke(g.pageId, g.rec.stroke);
} else if (g.kind === 'erase') {
for (const [pageId, ids] of g.hits) doc.setStrokes(pageId, (s) => s.filter((x) => !ids.has(x.id)));
// Like ink, an interrupted (pointercancel) erase is dropped.
if (e.type === 'pointerup') for (const [pageId, ids] of g.hits) doc.setStrokes(pageId, (s) => s.filter((x) => !ids.has(x.id)));
erasing = new Set();
}
}