mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Make sure the whole canvas is cleared.
This commit is contained in:
parent
e772038727
commit
4c4b8246ee
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ Doc = Base.extend({
|
||||||
|
|
||||||
redraw: function() {
|
redraw: function() {
|
||||||
if (this.canvas) {
|
if (this.canvas) {
|
||||||
this.ctx.clearRect(0, 0, this.size.width, this.size.height);
|
this.ctx.clearRect(0, 0, this.size.width + 1, this.size.height);
|
||||||
for (var i = 0, l = this.layers.length; i < l; i++) {
|
for (var i = 0, l = this.layers.length; i < l; i++) {
|
||||||
this.layers[i].draw(this.ctx);
|
this.layers[i].draw(this.ctx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue