mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-14 15:08:53 -04:00
Add comments and clean up code.
This commit is contained in:
parent
427cc21b3a
commit
b9f6c99dcd
3 changed files with 2 additions and 9 deletions
src/ui
|
@ -89,6 +89,7 @@ var CanvasView = View.extend(/** @lends CanvasView# */{
|
|||
called = false;
|
||||
while (item) {
|
||||
if (item.responds(type)) {
|
||||
// Create an reuse the event object if we're bubbling
|
||||
if (!mouseEvent)
|
||||
mouseEvent = new MouseEvent(type, event, point, target,
|
||||
// Calculate delta if lastPoint was passed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue