Skip to content

Commit

Permalink
3.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Feb 25, 2023
1 parent de9ede5 commit 0a828a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion p5play.js
Original file line number Diff line number Diff line change
Expand Up @@ -4891,11 +4891,13 @@ p5.prototype.registerMethod('init', function p5PlayInit() {
let maxY = this.p.height + bottom + cy;

let culled = 0;
for (let s of this) {
for (let i = 0; i < this.length; i++) {
let s = this[i];
if (s.x < minX || s.y < minY || s.x > maxX || s.y > maxY) {
culled++;
if (cb) cb(s, culled);
else s.remove();
if (s.removed) i--;
}
}
return culled;
Expand Down
2 changes: 1 addition & 1 deletion p5play.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
"version": "git add -A",
"postversion": "git push"
},
"version": "3.6.8"
"version": "3.6.9"
}

0 comments on commit 0a828a0

Please sign in to comment.