fix: a frame behind the text can be picked again
The browser hit-tests a behind-text frame last of all — the page and every paragraph over it come first — so a cover picture could not be clicked at all: the caret landed in the text as if it were not there. A mousedown over one now goes to the frame's own node view, which selects and drags it as any other frame; text painted over the point still wins, as the caret does in both products. A box's node view mirrors renderHTML's data-wrap for it, as an image's already did. Claude-Session: https://claude.ai/code/session_01Wzs2qG6Y5qm7mKmJHfu44G
This commit is contained in:
1 parent
9f5ecd8071
commit
9dfaeb4032
4 files changed
+97
-1
No files matched your search
@@ -13,6 +13,7 @@ const ORDERED_DEFAULTS: Record<string, unknown> = {
|
||||
joinPrev: false, // pageBreaks.ts's split marker; the export merges the halves
|
||||
marginLeft: 0, marginRight: 0, marginTop: 0, marginBottom: 0, // a table's, once a command has touched them
|
||||
alt: '', inFront: false, paddingCm: 0.15, flipV: false, textVertical: false, // the editor's own picture and box defaults
|
||||
wrapFromPage: false,
|
||||
// index attrs the DOCX TOC field has no switch for come back at their defaults
|
||||
maxLevel: MAX_HEADING_LEVEL, leader: '.', citationStyle: 'key',
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user