|
|
@@ -79,7 +79,13 @@
|
|
|
class:anchor={step.anchor}
|
|
|
style={`width:${layout.width}px;height:${layout.height}px`}
|
|
|
onclick={() => node.onSelect(info.id)}
|
|
|
- ondblclick={() => node.onStart?.(info.id)}
|
|
|
+ ondblclickcapture={(e) => {
|
|
|
+ // The flow canvas zooms on a double-click that reaches its pane; a
|
|
|
+ // double-click on a box is a navigation, not a zoom — stop it here,
|
|
|
+ // at the target, before it bubbles. The pane's own double-click keeps zooming.
|
|
|
+ e.stopPropagation();
|
|
|
+ node.onStart?.(info.id);
|
|
|
+ }}
|
|
|
aria-pressed={node.selected}
|
|
|
title={`${info.label} — ${step.anchor ? 'where this picture starts; ' : ''}${kindWord(step.kind, node.project, step)}. ${info.sub}.${cutNote}${node.onStart && !step.anchor ? ' Double-click to start here.' : ''}`}
|
|
|
>
|