Reverts the autoungrabify: true addition. Grabbing is useful for
manually rearranging nodes after a dagre layout that crowds parts
of the graph together; the previous commit ('Let drill-in work on
external classes...') is the real fix for the double-click-doing-
nothing bug, so disabling grab was unnecessary.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
container: document.getElementById('cy'),
elements: [],
style: cyStyles(),
- // Disable per-node grabbing. Without this, cytoscape interprets a
- // click that moves even a couple of pixels between mousedown and
- // mouseup as a drag — and `tap` never fires, so our double-click
- // detector misses it (the user sees the node "drift" instead of
- // drilling in). dagre re-runs the layout after every loadGraph
- // anyway, so dragging individual nodes only ever produced
- // throwaway repositioning.
- autoungrabify: true,
});
// ---------------------------------------------------------------------------