KarateKid
KarateKid

Reputation: 3436

Make a node unclickable in Cytoscape js.

I have a compound nodes with almost 50 nodes. And the problem is that the user can not scroll when zoomed into the node to a reasonable scale as clicking on the made (necessary for scrolling) triggers the onclick functionality of the compound need. So is there a way by which a certain node can be made unclickable, thus allowing panning even when zoomed onto the compound node.

Upvotes: 0

Views: 542

Answers (1)

maxkfranz
maxkfranz

Reputation: 12242

Set events: no in your stylesheet: http://js.cytoscape.org/#style/events

It's analogous to pointer-events: none in CSS: https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events

Upvotes: 2

Related Questions