]> Repositorios git - classgraph.git/commit
Disable cytoscape node grabbing so taps fire reliably
authorJavier Sagredo <[email protected]>
Wed, 6 May 2026 23:53:17 +0000 (01:53 +0200)
committerJavier Sagredo <[email protected]>
Wed, 6 May 2026 23:53:17 +0000 (01:53 +0200)
commit42bdd3fcca89d8f06dd5547078a52c027fa9c54b
tree802bcd7bf500f846e94f10ed5c5bc1ed5bdb7b72
parent50879af16ed6fedefb2d8b3db37a5852d11b461d
Disable cytoscape node grabbing so taps fire reliably

By default cytoscape lets the user drag nodes around. The drag
detector kicks in if the pointer moves more than a few pixels
between mousedown and mouseup, and when that happens cytoscape
suppresses the corresponding 'tap' event — which is what our
hand-rolled double-click handler listens to. So a slightly-jittery
double-click on a class node looked like the node was being dragged
without ever drilling into the instance view.

Set autoungrabify: true at init. Dagre re-runs the layout every time
loadGraph is invoked, so user repositioning of individual nodes was
already throwaway — disabling grabbing is a clean improvement on
both axes.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
data/viewer.js