mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Clean up mouseup handler.
This commit is contained in:
parent
83373576f2
commit
824870196e
1 changed files with 7 additions and 7 deletions
|
@ -217,14 +217,14 @@ var DocumentView = this.DocumentView = Base.extend({
|
|||
if (!dragging)
|
||||
return;
|
||||
dragging = false;
|
||||
if (!tool)
|
||||
return;
|
||||
curPoint = null;
|
||||
if (tool.eventInterval != null)
|
||||
timer = clearInterval(timer);
|
||||
tool.onHandleEvent('mouseup', viewToArtwork(event), event);
|
||||
if (tool.onMouseUp)
|
||||
that.draw();
|
||||
if (tool) {
|
||||
if (tool.eventInterval != null)
|
||||
timer = clearInterval(timer);
|
||||
tool.onHandleEvent('mouseup', viewToArtwork(event), event);
|
||||
if (tool.onMouseUp)
|
||||
that.draw();
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue