mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Fix View#bounds for zoom levels other than 1.
This commit is contained in:
parent
7c2fabd6a1
commit
a081419a8b
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ var View = this.View = PaperScopeItem.extend(/** @lends View# */{
|
||||||
*/
|
*/
|
||||||
getBounds: function() {
|
getBounds: function() {
|
||||||
if (!this._bounds)
|
if (!this._bounds)
|
||||||
this._bounds = this._matrix._transformBounds(
|
this._bounds = this._getInverse()._transformBounds(
|
||||||
new Rectangle(new Point(), this._viewSize));
|
new Rectangle(new Point(), this._viewSize));
|
||||||
return this._bounds;
|
return this._bounds;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue