Skip to content

Commit

Permalink
fix bubble size on retina display
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobruni committed May 31, 2020
1 parent 99ed809 commit 5fb9b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Retina.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class Retina {
this.repulseModeDistance = modes.repulse.distance * ratio;
this.slowModeRadius = modes.slow.radius * ratio;
this.bubbleModeDistance = modes.bubble.distance * ratio;
this.bubbleModeSize = modes.bubble.size ?? this.sizeValue * ratio;
this.bubbleModeSize = (modes.bubble.size ?? this.sizeValue * 2) * ratio;
}

public initParticle(particle: Particle): void {
Expand Down

0 comments on commit 5fb9b21

Please sign in to comment.