Fix: Canvas stjeler ikke klikk fra panel-innhold lenger
Canvas handlePointerDown ignorerer klikk inne i .blockshell-content. Inputs, knapper, selects og lister i paneler fungerer normalt. Bare headeren starter Canvas-drag. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8675ba0b5d
commit
3cc17c5784
1 changed files with 6 additions and 1 deletions
|
|
@ -208,8 +208,13 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Left button on object = drag object
|
// Left button on object = drag object (but not panel content)
|
||||||
if (e.button === 0) {
|
if (e.button === 0) {
|
||||||
|
// La klikk inne i panel-innhold passere (inputs, knapper, lister osv.)
|
||||||
|
// Bare headeren (.blockshell-header) skal starte Canvas-drag
|
||||||
|
const inContent = (e.target as HTMLElement).closest('.blockshell-content');
|
||||||
|
if (inContent) return;
|
||||||
|
|
||||||
const target = (e.target as HTMLElement).closest('[data-canvas-object-id]');
|
const target = (e.target as HTMLElement).closest('[data-canvas-object-id]');
|
||||||
if (target) {
|
if (target) {
|
||||||
const id = target.getAttribute('data-canvas-object-id')!;
|
const id = target.getAttribute('data-canvas-object-id')!;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue