mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Documentation: fix type of View#bounds.
This commit is contained in:
parent
68193d8a98
commit
9b1812f7d8
1 changed files with 3 additions and 3 deletions
|
@ -146,7 +146,7 @@ var View = this.View = Base.extend({
|
|||
},
|
||||
|
||||
/**
|
||||
* @type Size
|
||||
* @type Rectangle
|
||||
* @bean
|
||||
*/
|
||||
getBounds: function() {
|
||||
|
@ -386,13 +386,13 @@ var View = this.View = Base.extend({
|
|||
curPoint = point || curPoint;
|
||||
if (curPoint)
|
||||
tool.onHandleEvent('mousedrag', curPoint, event);
|
||||
if (tool.onMouseDrag)
|
||||
if (tool.onMouseDrag && !tool.onFrame)
|
||||
that.draw();
|
||||
// PORT: If there is only an onMouseMove handler, also call it when
|
||||
// the user is dragging:
|
||||
} else if (!dragging || onlyMove) {
|
||||
tool.onHandleEvent('mousemove', point, event);
|
||||
if (tool.onMouseMove)
|
||||
if (tool.onMouseMove && !tool.onFrame)
|
||||
that.draw();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue