Reputation: 11
I use Cytoscape.js.
The graph is mounted in a div with the id of mynetwork.
I've placed a button on top of that graph that allows you to zoom in.
When you push the zoom button, the node hidden under the button responds to your click.
Is there any way to disable this reaction?
Upvotes: 0
Views: 128
Reputation: 11
Self resolved.
I was able to get around this issue by not creating a button in the div that I was mounting, as shown below.
<div id="relationMap">
<div id="mynetwork">
<button>+</button>
</div>
</div>
↓
<div id="relationMap">
<div id="mynetwork"></div>
<button>+</button>
</div>
Upvotes: 1