Skip to content

Commit

Permalink
fix: fixed out of canvas out mode
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobruni committed Jul 17, 2021
1 parent 38b2fc4 commit 1f17c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/src/Updaters/OutModes/OutOfCanvasUpdater.ts
Expand Up @@ -73,9 +73,9 @@ export class OutOfCanvasUpdater implements IParticleUpdater {
const wrap = particle.options.move.warp,
canvasSize = container.canvas.size,
newPos = {
bottom: canvasSize.height + particle.getRadius() + particle.offset.y,
bottom: canvasSize.height + /*particle.getRadius() +*/ particle.offset.y,
left: /*-particle.getRadius()*/ -particle.offset.x,
right: canvasSize.width + particle.getRadius() + particle.offset.x,
right: canvasSize.width + /*particle.getRadius() +*/ particle.offset.x,
top: /*-particle.getRadius()*/ -particle.offset.y,
},
sizeValue = particle.getRadius(),
Expand Down

0 comments on commit 1f17c60

Please sign in to comment.