mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-20 09:59:00 -04:00
Pass on view matrix to Project#draw.
So selection drawing is not zoomed.
This commit is contained in:
parent
daca14efb8
commit
010209c70f
2 changed files with 4 additions and 6 deletions
src/ui
|
@ -58,11 +58,7 @@ var CanvasView = View.extend(/** @lends CanvasView# */{
|
|||
var ctx = this._context,
|
||||
size = this._viewSize;
|
||||
ctx.clearRect(0, 0, size._width + 1, size._height + 1);
|
||||
|
||||
ctx.save();
|
||||
this._matrix.applyToContext(ctx);
|
||||
this._project.draw(ctx);
|
||||
ctx.restore();
|
||||
this._project.draw(ctx, this._matrix.isIdentity() ? null : this._matrix);
|
||||
this._redrawNeeded = false;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue