I am trying to create a webapp to slice a page based on a given template pic. My page has a div which i am using as the container for the stage and I want to detect when the mouse is clicked within this container so I can get the pointer position and go from there to draw the line. I tried adding an event listener to the stage like so:
stage.on(mousedown,function(){ ..... });
but this doesn't seem to work. I have been looking all over the kineticjs website and couldn't find anything to detect when the mouse is clicked within the container div. Any help is appreciated!
Thanks in advance!