Stop a drawing from making its note unwritable
The layer showing saved ink lies over the text. The canvas itself is deaf to the pointer, but the box I wrapped it in yesterday was not — so on any note carrying a drawing, every click meant for the text was swallowed before it arrived, and the note simply could not be typed in. Introduced with per-page drawing, where each page's ink got a wrapper to be positioned by. The suite now clicks into the text of a note that has a drawing and types, and asks what actually answers over the writing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fcdd29ba2b
commit
3ce867c6d0
2 files changed
+37
-1
No files matched your search
@@ -849,7 +849,19 @@ export function NoteEditor({
|
||||
<div
|
||||
key={page}
|
||||
data-drawn-page={page}
|
||||
style={{ position: "absolute", left: 0, right: 0, top: (page - 1) * stageSize.h, height: stageSize.h }}
|
||||
style={{
|
||||
position: "absolute",
|
||||
left: 0,
|
||||
right: 0,
|
||||
top: (page - 1) * stageSize.h,
|
||||
height: stageSize.h,
|
||||
/* Deaf to the pointer, or this box lies over the writing and
|
||||
swallows every click meant for the text — which is exactly
|
||||
what it did: a note with a drawing could not be typed in
|
||||
at all. The canvas inside says the same thing, but a
|
||||
transparent wrapper is still a wrapper. */
|
||||
pointerEvents: "none",
|
||||
}}
|
||||
>
|
||||
<DrawingLayer
|
||||
strokes={sheetStrokes({ sheets }, page)}
|
||||
|
||||
Reference in new issue
Block a user