From 63b584650e14513e741100539a2f9ee0d66f4a7b Mon Sep 17 00:00:00 2001 From: Joan Touzet Date: Sun, 6 Dec 2015 10:08:04 -0500 Subject: [PATCH] Fix infinite scroll if targetElement height > win height --- snowstorm-min.js | 2 +- snowstorm.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/snowstorm-min.js b/snowstorm-min.js index 1559e4e..106458e 100644 --- a/snowstorm-min.js +++ b/snowstorm-min.js @@ -14,7 +14,7 @@ u;a:{try{f.createElement("div").style.opacity="0.5"}catch(F){u=!1;break a}u=!0}v moz:d("MozTransform"),opera:d("OTransform"),webkit:d("webkitTransform"),w3:d("transform"),prop:null},getAnimationFrame:e};e.transform.prop=e.transform.w3||e.transform.moz||e.transform.webkit||e.transform.ie||e.transform.opera;h=null;return e}();this.timer=null;this.flakes=[];this.active=this.disabled=!1;this.meltFrameCount=20;this.meltFrames=[];this.setXY=function(c,d,e){if(!c)return!1;a.usePixelPosition||w?(c.style.left=d-a.flakeWidth+"px",c.style.top=e-a.flakeHeight+"px"):r?(c.style.right=100-100* (d/h)+"%",c.style.top=Math.min(e,s-a.flakeHeight)+"px"):a.flakeBottom?(c.style.right=100-100*(d/h)+"%",c.style.top=Math.min(e,s-a.flakeHeight)+"px"):(c.style.right=100-100*(d/h)+"%",c.style.bottom=100-100*(e/l)+"%")};this.events=function(){function a(c){c=b.call(c);var d=c.length;e?(c[1]="on"+c[1],3 windowY + } if (!fixedForEverything && !storm.flakeBottom && storm.flakes) { for (i=0; i