Get your own customer support community
 

How do I add an event handler for a click without dragging?

I have the following code to add a mouse click event:
Seadragon.Utils.addEvent(viewer.elmt, "click", checkNode);

works great, when the mouse is clicked my checkNode function is called. Problem is that function is called even when the mouse is clicked only to drag the image around. I only want checkNode to be called if the mouse was not dragged. Or at least I'd like to be able to check if the mouse was dragged within checkNode. Is this possible?
Inappropriate?
2 people have this question

User_default_medium