mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Flock example: fix small bug.
This commit is contained in:
parent
c0febab6c1
commit
be7ccdbe17
1 changed files with 2 additions and 1 deletions
|
@ -282,7 +282,8 @@
|
|||
|
||||
// Resize the document, whenever the window is resized,
|
||||
window.onresize = function(event) {
|
||||
size = document.size = [window.innerWidth, window.innerHeight];
|
||||
document.size = [window.innerWidth, window.innerHeight];
|
||||
size = document.size;
|
||||
heartPath.position = document.bounds.center;
|
||||
document.redraw();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue