]> Repositorios git - classgraph.git/commitdiff
Re-enable node grabbing in cytoscape
authorJavier Sagredo <[email protected]>
Thu, 7 May 2026 00:00:23 +0000 (02:00 +0200)
committerJavier Sagredo <[email protected]>
Thu, 7 May 2026 00:00:23 +0000 (02:00 +0200)
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]>
data/viewer.js

index 31adcd04d496acb3c3c6cc0517fdcb93d4fc5882..cb84f9fdf67606b21224955b64261500721f7d2a 100644 (file)
     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,
   });
 
   // ---------------------------------------------------------------------------