get-window-offset
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -40,2 +40,5 @@ 'use strict'; | ||
distance.left = Math.abs(domInfo.left - scrollInfo.left); | ||
} else { | ||
console.error('Dom is not in screen', { domInfo: domInfo, scrollInfo: scrollInfo }); | ||
return false; | ||
} | ||
@@ -45,6 +48,2 @@ var distanceFlip = (_distanceFlip = {}, _defineProperty(_distanceFlip, distance.top, 't'), _defineProperty(_distanceFlip, distance.right, 'r'), _defineProperty(_distanceFlip, distance.bottom, 'b'), _defineProperty(_distanceFlip, distance.left, 'l'), _distanceFlip); | ||
var firstKey = distanceFlip[maxDistance]; | ||
if (!firstKey) { | ||
console.error('Get maxDistance fail', { maxDistance: maxDistance, distanceFlip: distanceFlip, domInfo: domInfo, scrollInfo: scrollInfo }); | ||
return false; | ||
} | ||
var secondKey = void 0; | ||
@@ -51,0 +50,0 @@ var locs = [firstKey + 'c']; |
{ | ||
"name": "get-window-offset", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Get dom info in window", | ||
@@ -5,0 +5,0 @@ "repository": "react-atomic/react-atomic-organism", |
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
13196
321