dom-autoscroller
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -299,29 +299,3 @@ import { boolean } from 'type-func'; | ||
} | ||
/*function getRect(el){ | ||
if(el === window){ | ||
return { | ||
top: 0, | ||
left: 0, | ||
right: window.innerWidth, | ||
bottom: window.innerHeight, | ||
width: window.innerWidth, | ||
height: window.innerHeight | ||
}; | ||
}else{ | ||
try{ | ||
return el.getBoundingClientRect(); | ||
}catch(e){ | ||
throw new TypeError("Can't call getBoundingClientRect on "+el); | ||
} | ||
} | ||
} | ||
function inside(point, el, rect){ | ||
rect = rect || getRect(el); | ||
return (point.y > rect.top && point.y < rect.bottom && | ||
point.x > rect.left && point.x < rect.right); | ||
}*/ | ||
/* | ||
@@ -328,0 +302,0 @@ git remote add origin https://github.com/hollowdoor/dom_autoscroller.git |
@@ -301,29 +301,3 @@ 'use strict'; | ||
} | ||
/*function getRect(el){ | ||
if(el === window){ | ||
return { | ||
top: 0, | ||
left: 0, | ||
right: window.innerWidth, | ||
bottom: window.innerHeight, | ||
width: window.innerWidth, | ||
height: window.innerHeight | ||
}; | ||
}else{ | ||
try{ | ||
return el.getBoundingClientRect(); | ||
}catch(e){ | ||
throw new TypeError("Can't call getBoundingClientRect on "+el); | ||
} | ||
} | ||
} | ||
function inside(point, el, rect){ | ||
rect = rect || getRect(el); | ||
return (point.y > rect.top && point.y < rect.bottom && | ||
point.x > rect.left && point.x < rect.right); | ||
}*/ | ||
/* | ||
@@ -330,0 +304,0 @@ git remote add origin https://github.com/hollowdoor/dom_autoscroller.git |
@@ -549,29 +549,3 @@ var autoScroll = (function () { | ||
} | ||
/*function getRect(el){ | ||
if(el === window){ | ||
return { | ||
top: 0, | ||
left: 0, | ||
right: window.innerWidth, | ||
bottom: window.innerHeight, | ||
width: window.innerWidth, | ||
height: window.innerHeight | ||
}; | ||
}else{ | ||
try{ | ||
return el.getBoundingClientRect(); | ||
}catch(e){ | ||
throw new TypeError("Can't call getBoundingClientRect on "+el); | ||
} | ||
} | ||
} | ||
function inside(point, el, rect){ | ||
rect = rect || getRect(el); | ||
return (point.y > rect.top && point.y < rect.bottom && | ||
point.x > rect.left && point.x < rect.right); | ||
}*/ | ||
/* | ||
@@ -578,0 +552,0 @@ git remote add origin https://github.com/hollowdoor/dom_autoscroller.git |
{ | ||
"name": "dom-autoscroller", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Auto scroll dom elements", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle.js", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111657
933