ericdrowell / KineticJS

KineticJS is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
http://www.kineticjs.com
3.98k stars 753 forks source link

creation on context menu for a rectangle container #1054

Open hollaajay opened 9 years ago

hollaajay commented 9 years ago

I have around 25 different rectangle inside a container. But while creating a context menu i am getting a trouble here. I could create a context menu by selecting a id of the container and it's applying to the whole rectangle. But i have different context menu for each rectangle. Kindly help me on this. you can check my code here : http://jsfiddle.net/ajayholla/nusbz3t6/13/

Here the main problem is when you click on rectangle its showing that context menu and affecting all other. once refresh the page then again click other rectangle that context menu will activate and that would affect the whole container.