react-snowfall
Advanced tools
Comparing version 1.1.0-alpha.1 to 1.1.0-alpha.2
@@ -81,3 +81,5 @@ "use strict"; | ||
_this.params.x = (x + wind * framesPassed) % canvas.offsetWidth; | ||
_this.params.y = (y + speed * framesPassed) % canvas.offsetHeight; // Update the wind and speed towards the desired values | ||
if (wind < 0 && _this.params.x < 0) _this.params.x = canvas.offsetWidth + 10; | ||
_this.params.y = (y + speed * framesPassed) % canvas.offsetHeight; | ||
if (speed < 0 && _this.params.y < 0) _this.params.y = canvas.offsetHeight + 10; // Update the wind and speed towards the desired values | ||
@@ -84,0 +86,0 @@ _this.params.speed = (0, _utils.lerp)(speed, nextSpeed, 0.01); |
{ | ||
"name": "react-snowfall", | ||
"version": "1.1.0-alpha.1", | ||
"version": "1.1.0-alpha.2", | ||
"description": "A react component that creates a snowfall effect", | ||
@@ -5,0 +5,0 @@ "main": "./lib/Snowfall.js", |
@@ -17,10 +17,5 @@ { | ||
"esModuleInterop": true, | ||
"lib": [ | ||
"dom", | ||
"es2015" | ||
] | ||
"lib": ["dom", "es2015"] | ||
}, | ||
"include": [ | ||
"src" | ||
] | ||
} | ||
"include": ["src"] | ||
} |
Sorry, the diff of this file is not supported yet
125838
1485