<p>The MouseEvent object is received by the <ahref="../classes/Item.html"><tt>Item</tt></a>’s mouse event handlers <ahref="../classes/Item.html#onmousedown"><tt>item.onMouseDown</tt></a>, <ahref="../classes/Item.html#onmousedrag"><tt>item.onMouseDrag</tt></a>, <ahref="../classes/Item.html#onmousemove"><tt>item.onMouseMove</tt></a>, <ahref="../classes/Item.html#onmouseup"><tt>item.onMouseUp</tt></a>, <ahref="../classes/Item.html#onclick"><tt>item.onClick</tt></a>, <ahref="../classes/Item.html#ondoubleclick"><tt>item.onDoubleClick</tt></a>, <ahref="../classes/Item.html#onmouseenter"><tt>item.onMouseEnter</tt></a> and <ahref="../classes/Item.html#onmouseleave"><tt>item.onMouseLeave</tt></a>. The MouseEvent object is the only parameter passed to these functions and contains information about the mouse event.</p>
<p>The item that dispatched the event. It is different from <ahref="../classes/MouseEvent.html#currenttarget"><tt>currentTarget</tt></a> when the event handler is called during the bubbling phase of the event.</p>
<p>The current target for the event, as the event traverses the scene graph. It always refers to the element the event handler has been attached to as opposed to <ahref="../classes/MouseEvent.html#target"><tt>target</tt></a> which identifies the element on which the event occurred.</p>
<p>Cancels the event if it is cancelable, and stops stopping further propagation of the event. This is has the same effect as calling both <ahref="../classes/Event.html#stoppropagation"><tt>stopPropagation</tt></a>() and <ahref="../classes/Event.html#preventdefault"><tt>preventDefault</tt></a>().</p>
<p>Any handler can also return <code>false</code> to indicate that <code>stop()</code> should be called right after.</p>
Copyright © 2011—2020 <ahref="http://www.lehni.org"target="_blank">Jürg Lehni</a>&<ahref="http://www.jonathanpuckey.com"target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>