mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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,
|
// Resize the document, whenever the window is resized,
|
||||||
window.onresize = function(event) {
|
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;
|
heartPath.position = document.bounds.center;
|
||||||
document.redraw();
|
document.redraw();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue