seamless-scroll-polyfill
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1,2 +0,2 @@ | ||
(function(){'use strict';function a(a){var b="function"==typeof Symbol&&a[Symbol.iterator],c=0;return b?b.call(a):{next:function(){return a&&c>=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}}}function b(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,f,g=c.call(a),h=[];try{for(;(void 0===b||0<b--)&&!(d=g.next()).done;)h.push(d.value)}catch(a){f={error:a}}finally{try{d&&!d.done&&(c=g["return"])&&c.call(g)}finally{if(f)throw f.error}}return h}function c(a,b,c,d,e,f,g,h){return f<a&&g>b||f>a&&g<b?0:f<=a&&h<=c||g>=b&&h>=c?f-a-d:g>b&&h<c||f<a&&h>c?g-b+e:0}var d,e,f,g,h,i=function(){return i=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a},i.apply(this,arguments)},j=function(a){return .5*(1-Math.cos(Math.PI*a))},k=function(){return(performance||Date).now()},l=function(a){var b=k(),c=(b-a.timeStamp)/(a.duration||500);if(1<c)return a.method(a.targetX,a.targetY),void a.callback();var d=(a.timingFunc||j)(c),e=a.startX+(a.targetX-a.startX)*d,f=a.startY+(a.targetY-a.startY)*d;a.method(e,f),a.rafId=requestAnimationFrame(function(){l(a)})},m=function(){return d||(d=Element.prototype.scroll||Element.prototype.scrollTo||function(a,b){this.scrollLeft=a,this.scrollTop=b})},n=function(a,b){var c=m().bind(a);if(void 0!==b.left||void 0!==b.top){var d=a.scrollLeft,e=a.scrollTop,f=b.left,g=void 0===f?d:f,h=b.top,i=void 0===h?e:h;if("smooth"!==b.behavior)return c(g,i);var j=function(){window.removeEventListener("wheel",o),window.removeEventListener("touchmove",o)},n={timeStamp:k(),duration:b.duration,startX:d,startY:e,targetX:g,targetY:i,rafId:0,method:c,timingFunc:b.timingFunc,callback:j},o=function(){cancelAnimationFrame(n.rafId),j()};window.addEventListener("wheel",o,{passive:!0,once:!0}),window.addEventListener("touchmove",o,{passive:!0,once:!0}),l(n)}},o=function(a){var c=m();Element.prototype.scroll=function(){var d=b(arguments,2),e=d[0],f=void 0===e?0:e,g=d[1],h=void 0===g?0:g;if("number"==typeof f&&"number"==typeof h)return c.call(this,f,h);if(Object(f)!==f)throw new TypeError("Failed to execute 'scroll' on 'Element': parameter 1 ('options') is not an object.");return n(this,i({},f,a))}},p=function(a,b){var c=(b.left||0)+a.scrollLeft,d=(b.top||0)+a.scrollTop;return n(a,i({},b,{left:c,top:d}))},q=function(a){Element.prototype.scrollBy=function(){var c=b(arguments,2),d=c[0],e=void 0===d?0:d,f=c[1],g=void 0===f?0:f;if("number"==typeof e&&"number"==typeof g)return p(this,{left:e,top:g});if(Object(e)!==e)throw new TypeError("Failed to execute 'scrollBy' on 'Element': parameter 1 ('options') is not an object.");return p(this,i({},e,a))}},r=function(){return e||(e=window.scroll||window.scrollTo)},s=function(a){var b=r().bind(window);if(void 0!==a.left||void 0!==a.top){var c=window.scrollX||window.pageXOffset,d=window.scrollY||window.pageYOffset,e=a.left,f=void 0===e?c:e,g=a.top,h=void 0===g?d:g;if("smooth"!==a.behavior)return b(f,h);var i=function(){window.removeEventListener("wheel",m),window.removeEventListener("touchmove",m)},j={timeStamp:k(),duration:a.duration,startX:c,startY:d,targetX:f,targetY:h,rafId:0,method:b,timingFunc:a.timingFunc,callback:i},m=function(){cancelAnimationFrame(j.rafId),i()};window.addEventListener("wheel",m,{passive:!0,once:!0}),window.addEventListener("touchmove",m,{passive:!0,once:!0}),l(j)}},t=function(a){var c=r();window.scroll=function(){var d=b(arguments,2),e=d[0],f=void 0===e?0:e,g=d[1],h=void 0===g?0:g;if("number"==typeof f&&"number"==typeof h)return c.call(this,f,h);if(Object(f)!==f)throw new TypeError("Failed to execute 'scroll' on 'Window': parameter 1 ('options') is not an object.");return s(i({},f,a))}},u=function(a,b,c,d){var e=0===b&&c||1===b&&!c?a.inline:a.block;return"center"===e?1:"nearest"===e?0:"start"===e?0===b?d?5:4:2:"end"===e?0===b?d?4:5:3:c?0===b?0:2:0===b?4:0},v=function(a){return"visible"!==a&&"clip"!==a},w=function(a){if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){var b=getComputedStyle(a);return v(b.overflowY)||v(b.overflowX)}return!1},x=function(a){var b=a.parentNode;return b&&(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b)},y=function(b,d){var e,f;if(b.ownerDocument.documentElement.contains(b)){for(var g=document.scrollingElement||document.documentElement,h=[],j=x(b);null!==j;j=x(j)){if(j===g){h.push(j);break}(j!==document.body||!w(j)||w(document.documentElement))&&w(j)&&h.push(j)}var k=window.visualViewport?window.visualViewport.width:innerWidth,l=window.visualViewport?window.visualViewport.height:innerHeight,m=window.scrollX||window.pageXOffset,o=window.scrollY||window.pageYOffset,p=b.getBoundingClientRect(),q=p.height,r=p.width,t=p.top,v=p.right,y=p.bottom,z=p.left,A=getComputedStyle(b).writingMode,B="horizontal-tb"===A,C="vertical-rl"===A,D=u(d,0,B,C),E=u(d,1,B,C),F=function(){return 2===E||0===E?t:3===E?y:t+q/2}(),G=function(){return 1===D?z+r/2:5===D?v:z}(),H=[],I=function(a){var b=Math.min,e=Math.max,f=a.getBoundingClientRect(),h=f.height,j=f.width,p=f.top,t=f.right,u=f.bottom,v=f.left,w=getComputedStyle(a),x=parseInt(w.borderLeftWidth,10),y=parseInt(w.borderTopWidth,10),z=parseInt(w.borderRightWidth,10),A=parseInt(w.borderBottomWidth,10),B=0,C=0,I="offsetWidth"in a?a.offsetWidth-a.clientWidth-x-z:0,J="offsetHeight"in a?a.offsetHeight-a.clientHeight-y-A:0;if(g===a){switch(E){case 2:{B=F;break}case 3:{B=F-l;break}case 1:{B=F-l/2;break}case 0:{B=c(o,o+l,l,y,A,o+F,o+F+q,q);break}}switch(D){case 4:{C=G;break}case 5:{C=G-k;break}case 1:{C=G-k/2;break}case 0:{C=c(m,m+k,k,x,z,m+G,m+G+r,r);break}}B=e(0,B+o),C=e(0,C+m),H.push(function(){return s(i({},d,{top:B,left:C}))})}else{switch(E){case 2:{B=F-p-y;break}case 3:{B=F-u+A+J;break}case 1:{B=F-(p+h/2)+J/2;break}case 0:{B=c(p,u,h,y,A+J,F,F+q,q);break}}switch(D){case 4:{C=G-v-x;break}case 5:{C=G-t+z+I;break}case 1:{C=G-(v+j/2)+I/2;break}case 0:{C=c(v,t,j,x,z+I,G,G+r,r);break}}var K=a.scrollLeft,L=a.scrollTop;B=e(0,b(L+B,a.scrollHeight-h+J)),C=e(0,b(K+C,a.scrollWidth-j+I)),F+=L-B,G+=K-C,H.push(function(){return n(a,i({},d,{top:B,left:C}))})}};try{for(var J,K=a(h),L=K.next();!L.done;L=K.next())J=L.value,I(J)}catch(a){e={error:a}}finally{try{L&&!L.done&&(f=K.return)&&f.call(K)}finally{if(e)throw e.error}}H.forEach(function(a){return a()})}},z=function(){return f||(f=document.documentElement.scrollIntoView)},A=function(a){var b=z();Element.prototype.scrollIntoView=function(c){if("boolean"==typeof c)return b.call(this,c);if(Object(c)!==c)throw new TypeError("Failed to execute 'scrollIntoView' on 'Element': parameter 1 ('options') is not an object.");return y(this,i({},c,a))}},B=function(a){var c=m();Element.prototype.scrollTo=function(){var d=b(arguments,2),e=d[0],f=void 0===e?0:e,g=d[1],h=void 0===g?0:g;if("number"==typeof f&&"number"==typeof h)return c.call(this,f,h);if(Object(f)!==f)throw new TypeError("Failed to execute 'scrollTo' on 'Element': parameter 1 ('options') is not an object.");return n(this,i({},f,a))}},C=function(a){var b=(a.left||0)+(window.scrollX||window.pageXOffset),c=(a.top||0)+(window.scrollY||window.pageYOffset);return"smooth"===a.behavior?s(i({},a,{left:b,top:c})):r()(b,c)},D=function(a){var c=function(){return g||(g=window.scrollBy)}();window.scrollBy=function(){var d=b(arguments,2),e=d[0],f=void 0===e?0:e,g=d[1],h=void 0===g?0:g;if("number"==typeof f&&"number"==typeof h)return c.call(this,f,h);if(Object(f)!==f)throw new TypeError("Failed to execute 'scrollBy' on 'Window': parameter 1 ('options') is not an object.");return C(i({},f,a))}},E=function(){return h||(h=window.scrollTo||window.scroll)},F=function(a){var c=E();window.scrollTo=function(){var d=b(arguments,2),e=d[0],f=void 0===e?0:e,g=d[1],h=void 0===g?0:g;if("number"==typeof f&&"number"==typeof h)return c.call(this,f,h);if(Object(f)!==f)throw new TypeError("Failed to execute 'scrollTo' on 'Window': parameter 1 ('options') is not an object.");return s(i({},f,a))}},G=function(a){"scrollBehavior"in document.documentElement.style||(t(a),F(a),D(a),o(a),B(a),q(a),A(a))};(function(a,b){a&&(b=~~a.dataset.duration,b=0<b?b:void 0,G({duration:b}))})(document.currentScript||document.querySelector("script[data-seamless]"))})(); | ||
(function(a){"function"==typeof define&&define.amd?define(a):a()})(function(){'use strict';function a(a){var b="function"==typeof Symbol&&a[Symbol.iterator],c=0;return b?b.call(a):{next:function(){return a&&c>=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}}}function b(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,f,g=c.call(a),h=[];try{for(;(void 0===b||0<b--)&&!(d=g.next()).done;)h.push(d.value)}catch(a){f={error:a}}finally{try{d&&!d.done&&(c=g["return"])&&c.call(g)}finally{if(f)throw f.error}}return h}function c(a,b,c,d,e,f,g,h){return f<a&&g>b||f>a&&g<b?0:f<=a&&h<=c||g>=b&&h>=c?f-a-d:g>b&&h<c||f<a&&h>c?g-b+e:0}var d,e,f,g,h,i=function(){return i=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a},i.apply(this,arguments)},j=function(a){return .5*(1-Math.cos(Math.PI*a))},k=function(){return(performance||Date).now()},l=function(a){var b=k(),c=(b-a.timeStamp)/(a.duration||500);if(1<c)return a.method(a.targetX,a.targetY),void a.callback();var d=(a.timingFunc||j)(c),e=a.startX+(a.targetX-a.startX)*d,f=a.startY+(a.targetY-a.startY)*d;a.method(e,f),a.rafId=requestAnimationFrame(function(){l(a)})},m=function(){return d||(d=Element.prototype.scroll||Element.prototype.scrollTo||function(a,b){this.scrollLeft=a,this.scrollTop=b})},n=function(a,b){var c=m().bind(a);if(void 0!==b.left||void 0!==b.top){var d=a.scrollLeft,e=a.scrollTop,f=b.left,g=void 0===f?d:f,h=b.top,i=void 0===h?e:h;if("smooth"!==b.behavior)return c(g,i);var j=function(){window.removeEventListener("wheel",o),window.removeEventListener("touchmove",o)},n={timeStamp:k(),duration:b.duration,startX:d,startY:e,targetX:g,targetY:i,rafId:0,method:c,timingFunc:b.timingFunc,callback:j},o=function(){cancelAnimationFrame(n.rafId),j()};window.addEventListener("wheel",o,{passive:!0,once:!0}),window.addEventListener("touchmove",o,{passive:!0,once:!0}),l(n)}},o=function(a){var c=m();Element.prototype.scroll=function(){var d=b(arguments,2),e=d[0],f=void 0===e?0:e,g=d[1],h=void 0===g?0:g;if("number"==typeof f&&"number"==typeof h)return c.call(this,f,h);if(Object(f)!==f)throw new TypeError("Failed to execute 'scroll' on 'Element': parameter 1 ('options') is not an object.");return n(this,i({},f,a))}},p=function(a,b){var c=(b.left||0)+a.scrollLeft,d=(b.top||0)+a.scrollTop;return n(a,i({},b,{left:c,top:d}))},q=function(a){Element.prototype.scrollBy=function(){var c=b(arguments,2),d=c[0],e=void 0===d?0:d,f=c[1],g=void 0===f?0:f;if("number"==typeof e&&"number"==typeof g)return p(this,{left:e,top:g});if(Object(e)!==e)throw new TypeError("Failed to execute 'scrollBy' on 'Element': parameter 1 ('options') is not an object.");return p(this,i({},e,a))}},r=function(){return e||(e=window.scroll||window.scrollTo)},s=function(a){var b=r().bind(window);if(void 0!==a.left||void 0!==a.top){var c=window.scrollX||window.pageXOffset,d=window.scrollY||window.pageYOffset,e=a.left,f=void 0===e?c:e,g=a.top,h=void 0===g?d:g;if("smooth"!==a.behavior)return b(f,h);var i=function(){window.removeEventListener("wheel",m),window.removeEventListener("touchmove",m)},j={timeStamp:k(),duration:a.duration,startX:c,startY:d,targetX:f,targetY:h,rafId:0,method:b,timingFunc:a.timingFunc,callback:i},m=function(){cancelAnimationFrame(j.rafId),i()};window.addEventListener("wheel",m,{passive:!0,once:!0}),window.addEventListener("touchmove",m,{passive:!0,once:!0}),l(j)}},t=function(a){var c=r();window.scroll=function(){var d=b(arguments,2),e=d[0],f=void 0===e?0:e,g=d[1],h=void 0===g?0:g;if("number"==typeof f&&"number"==typeof h)return c.call(this,f,h);if(Object(f)!==f)throw new TypeError("Failed to execute 'scroll' on 'Window': parameter 1 ('options') is not an object.");return s(i({},f,a))}},u=function(a,b,c,d){var e=0===b&&c||1===b&&!c?a.inline:a.block;return"center"===e?1:"nearest"===e?0:"start"===e?0===b?d?5:4:2:"end"===e?0===b?d?4:5:3:c?0===b?0:2:0===b?4:0},v=function(a){return"visible"!==a&&"clip"!==a},w=function(a){if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){var b=getComputedStyle(a);return v(b.overflowY)||v(b.overflowX)}return!1},x=function(a){var b=a.parentNode;return b&&(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b)},y=function(b,d){var e,f;if(b.ownerDocument.documentElement.contains(b)){for(var g=document.scrollingElement||document.documentElement,h=[],j=x(b);null!==j;j=x(j)){if(j===g){h.push(j);break}(j!==document.body||!w(j)||w(document.documentElement))&&w(j)&&h.push(j)}var k=window.visualViewport?window.visualViewport.width:innerWidth,l=window.visualViewport?window.visualViewport.height:innerHeight,m=window.scrollX||window.pageXOffset,o=window.scrollY||window.pageYOffset,p=b.getBoundingClientRect(),q=p.height,r=p.width,t=p.top,v=p.right,y=p.bottom,z=p.left,A=getComputedStyle(b).writingMode,B="horizontal-tb"===A,C="vertical-rl"===A,D=u(d,0,B,C),E=u(d,1,B,C),F=function(){return 2===E||0===E?t:3===E?y:t+q/2}(),G=function(){return 1===D?z+r/2:5===D?v:z}(),H=[],I=function(a){var b=Math.min,e=Math.max,f=a.getBoundingClientRect(),h=f.height,j=f.width,p=f.top,t=f.right,u=f.bottom,v=f.left,w=getComputedStyle(a),x=parseInt(w.borderLeftWidth,10),y=parseInt(w.borderTopWidth,10),z=parseInt(w.borderRightWidth,10),A=parseInt(w.borderBottomWidth,10),B=0,C=0,I="offsetWidth"in a?a.offsetWidth-a.clientWidth-x-z:0,J="offsetHeight"in a?a.offsetHeight-a.clientHeight-y-A:0;if(g===a){switch(E){case 2:{B=F;break}case 3:{B=F-l;break}case 1:{B=F-l/2;break}case 0:{B=c(o,o+l,l,y,A,o+F,o+F+q,q);break}}switch(D){case 4:{C=G;break}case 5:{C=G-k;break}case 1:{C=G-k/2;break}case 0:{C=c(m,m+k,k,x,z,m+G,m+G+r,r);break}}B=e(0,B+o),C=e(0,C+m),H.push(function(){return s(i({},d,{top:B,left:C}))})}else{switch(E){case 2:{B=F-p-y;break}case 3:{B=F-u+A+J;break}case 1:{B=F-(p+h/2)+J/2;break}case 0:{B=c(p,u,h,y,A+J,F,F+q,q);break}}switch(D){case 4:{C=G-v-x;break}case 5:{C=G-t+z+I;break}case 1:{C=G-(v+j/2)+I/2;break}case 0:{C=c(v,t,j,x,z+I,G,G+r,r);break}}var K=a.scrollLeft,L=a.scrollTop;B=e(0,b(L+B,a.scrollHeight-h+J)),C=e(0,b(K+C,a.scrollWidth-j+I)),F+=L-B,G+=K-C,H.push(function(){return n(a,i({},d,{top:B,left:C}))})}};try{for(var J,K=a(h),L=K.next();!L.done;L=K.next())J=L.value,I(J)}catch(a){e={error:a}}finally{try{L&&!L.done&&(f=K.return)&&f.call(K)}finally{if(e)throw e.error}}H.forEach(function(a){return a()})}},z=function(){return f||(f=document.documentElement.scrollIntoView)},A=function(a){var b=z();Element.prototype.scrollIntoView=function(c){if("boolean"==typeof c)return b.call(this,c);if(Object(c)!==c)throw new TypeError("Failed to execute 'scrollIntoView' on 'Element': parameter 1 ('options') is not an object.");return y(this,i({},c,a))}},B=function(a){var c=m();Element.prototype.scrollTo=function(){var d=b(arguments,2),e=d[0],f=void 0===e?0:e,g=d[1],h=void 0===g?0:g;if("number"==typeof f&&"number"==typeof h)return c.call(this,f,h);if(Object(f)!==f)throw new TypeError("Failed to execute 'scrollTo' on 'Element': parameter 1 ('options') is not an object.");return n(this,i({},f,a))}},C=function(a){var b=(a.left||0)+(window.scrollX||window.pageXOffset),c=(a.top||0)+(window.scrollY||window.pageYOffset);return"smooth"===a.behavior?s(i({},a,{left:b,top:c})):r()(b,c)},D=function(a){var c=function(){return g||(g=window.scrollBy)}();window.scrollBy=function(){var d=b(arguments,2),e=d[0],f=void 0===e?0:e,g=d[1],h=void 0===g?0:g;if("number"==typeof f&&"number"==typeof h)return c.call(this,f,h);if(Object(f)!==f)throw new TypeError("Failed to execute 'scrollBy' on 'Window': parameter 1 ('options') is not an object.");return C(i({},f,a))}},E=function(){return h||(h=window.scrollTo||window.scroll)},F=function(a){var c=E();window.scrollTo=function(){var d=b(arguments,2),e=d[0],f=void 0===e?0:e,g=d[1],h=void 0===g?0:g;if("number"==typeof f&&"number"==typeof h)return c.call(this,f,h);if(Object(f)!==f)throw new TypeError("Failed to execute 'scrollTo' on 'Window': parameter 1 ('options') is not an object.");return s(i({},f,a))}},G=function(a){"scrollBehavior"in document.documentElement.style||(t(a),F(a),D(a),o(a),B(a),q(a),A(a))};(function(a,b){a&&(b=~~a.dataset.duration,b=0<b?b:void 0,G({duration:b}))})(document.currentScript||document.querySelector("script[data-seamless]"))}); | ||
//# sourceMappingURL=seamless.auto-polyfill.min.js.map |
@@ -0,0 +0,0 @@ export interface IAnimationOptions { |
@@ -0,0 +0,0 @@ import { IAnimationOptions, IScrollToOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions, IScrollToOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions, IScrollIntoViewOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions, IScrollToOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions, IScrollToOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ export interface IAnimationOptions { |
@@ -0,0 +0,0 @@ import { IAnimationOptions, IScrollToOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions, IScrollToOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions, IScrollIntoViewOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions, IScrollToOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions, IScrollToOptions } from "./common.js"; |
@@ -0,0 +0,0 @@ import { IAnimationOptions } from "./common.js"; |
@@ -5,3 +5,3 @@ { | ||
"description": "Smooth Scroll behavior polyfill", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": { | ||
@@ -31,3 +31,3 @@ "name": "Dustan Kasten", | ||
"module": "dist/esm/index.js", | ||
"browser": "dist/es5/seamless.min.js", | ||
"browser": "dist/es5/seamless.auto-polyfill.min.js", | ||
"types": "dist/esm/index.d.ts", | ||
@@ -44,6 +44,4 @@ "sideEffects": [ | ||
"esm": "tsc", | ||
"umd": "tsc -P tsconfig.umd.json", | ||
"es6": "tsc -P tsconfig.es6.json", | ||
"es5": "rollup -c", | ||
"build": "npm run esm && npm run umd && npm run es6 && npm run es5", | ||
"rollup": "rollup -c", | ||
"build": "npm run esm && npm run rollup", | ||
"lint": "tslint \"src/**/*.{js,ts}\"", | ||
@@ -50,0 +48,0 @@ "listdiff": "prettier --list-different \"{.,src/**}/*.{ts,js,json,md,*rc}\"", |
@@ -42,3 +42,3 @@ [![Build Status](https://travis-ci.org/magic-akari/seamless-scroll-polyfill.svg?branch=master)](https://travis-ci.org/magic-akari/seamless-scroll-polyfill) | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/seamless-scroll-polyfill@1.0.0/dist/es5/seamless.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/seamless-scroll-polyfill@1.0.0/dist/es5/seamless.js"></script> | ||
<script> | ||
@@ -45,0 +45,0 @@ // patch all methods |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
410619
111
3578