Skip to content

Commit

Permalink
Merge pull request #5 from pborreli/patch-1
Browse files Browse the repository at this point in the history
Fixed typo
  • Loading branch information
VincentGarreau committed Nov 12, 2014
2 parents 5134048 + 12ee89b commit 5c7f225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions particles.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ function launchParticlesJS(tag_id, params){
dy_mouse = p1.y - pJS.interactivity.mouse.pos_y,
dist_mouse = Math.sqrt(dx_mouse*dx_mouse + dy_mouse*dy_mouse);

/* Check distace between 2 particles + Check distance between 1 particle and mouse position */
/* Check distance between 2 particles + Check distance between 1 particle and mouse position */
if(dist <= pJS.particles.line_linked.distance && dist_mouse <= pJS.interactivity.mouse.distance && pJS.interactivity.status == 'mousemove'){
/* Draw the line */
var color_line = pJS.particles.line_linked.color_rgb_line;
Expand Down Expand Up @@ -452,4 +452,4 @@ window.particlesJS = function(tag_id, params){
launchParticlesJS(tag_id, params);
}

};
};

0 comments on commit 5c7f225

Please sign in to comment.