mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-27 22:29:11 -04:00
Always call View#draw() since it won't redraw internally if nothing has changed.
This commit is contained in:
parent
6b6d5909c1
commit
3fc21cd4b6
1 changed files with 3 additions and 6 deletions
|
@ -193,12 +193,9 @@ var PaperScript = this.PaperScript = new function() {
|
|||
}
|
||||
if (view) {
|
||||
view.onResize = onResize;
|
||||
if (onFrame) {
|
||||
view.setOnFrame(onFrame);
|
||||
} else {
|
||||
// Automatically draw view at the end.
|
||||
view.draw();
|
||||
}
|
||||
view.setOnFrame(onFrame);
|
||||
// Automatically draw view at the end.
|
||||
view.draw();
|
||||
}
|
||||
}).call(scope);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue