Documentation: fix type of View#bounds.

This commit is contained in:
Jonathan Puckey 2011-06-10 14:13:55 +02:00
parent 68193d8a98
commit 9b1812f7d8

View file

@ -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();
}
}