<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Event</title> <base target="class-frame"> <link href="../assets/css/docs.css" rel="stylesheet" type="text/css"> <script src="../assets/js/paper.js"></script> <script src="../assets/js/jquery.js"></script> <script src="../assets/js/codemirror.js"></script> <script src="../assets/js/docs.js"></script> </head> <body> <article class="reference"> <div class="reference-class"> <h1>Event</h1> <p>The Event object is the base class for any of the other event types, such as <a href="../classes/MouseEvent.html"><tt>MouseEvent</tt></a>, <a href="../classes/ToolEvent.html"><tt>ToolEvent</tt></a> and <a href="../classes/KeyEvent.html"><tt>KeyEvent</tt></a>.</p> </div> <!-- ================================ properties =========================== --> <div class="reference-members"> <h2>Properties</h2> <div id="timestamp" class="member"> <div class="member-link"> <a name="timestamp" href="#timestamp"><tt><b>timeStamp</b></tt></a> </div> <div class="member-description hidden"> <div class="member-text"> <p>The time at which the event was created, in milliseconds since the epoch.</p> <p>Read only.</p> <ul class="member-list"> <h4>Type:</h4> <li> <tt>Number</tt> </li> </ul> </div> </div> </div> <div id="modifiers" class="member"> <div class="member-link"> <a name="modifiers" href="#modifiers"><tt><b>modifiers</b></tt></a> </div> <div class="member-description hidden"> <div class="member-text"> <p>The current state of the keyboard modifiers.</p> <p>Read only.</p> <ul class="member-list"> <h4>Type:</h4> <li> <tt>object</tt> </li> </ul> <ul class="member-list"> <h4>See also:</h4> <li><tt><a href="../classes/Key.html#modifiers"><tt>Key.modifiers</tt></a></tt></li> </ul> </div> </div> </div> </div> <!-- ============================== methods ================================ --> <div class="reference-members"> <h2>Methods</h2> <div id="preventdefault" class="member"> <div class="member-link"> <a name="preventdefault" href="#preventdefault"><tt><b>preventDefault</b>()</tt></a> </div> <div class="member-description hidden"> <div class="member-text"> <p>Cancels the event if it is cancelable, without stopping further propagation of the event.</p> </div> </div> </div> <div id="stoppropagation" class="member"> <div class="member-link"> <a name="stoppropagation" href="#stoppropagation"><tt><b>stopPropagation</b>()</tt></a> </div> <div class="member-description hidden"> <div class="member-text"> <p>Prevents further propagation of the current event.</p> </div> </div> </div> <div id="stop" class="member"> <div class="member-link"> <a name="stop" href="#stop"><tt><b>stop</b>()</tt></a> </div> <div class="member-description hidden"> <div class="member-text"> <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 <a href="../classes/Event.html#stoppropagation"><tt>stopPropagation</tt></a>() and <a href="../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> </div> </div> </div> </div> <!-- =========================== copyright notice ========================== --> <p class="footer"> Paper.js v0.11.5 (develop)<br> Copyright © 2011—2017 <a href="http://www.lehni.org" target="_blank">Jürg Lehni</a> & <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p> <div class="content-end"></div> </article> </body>