get-scroll-info
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -10,3 +10,6 @@ 'use strict'; | ||
if (!el) { | ||
el = window; | ||
el = document.body; | ||
if (!el.scrollLeft) { | ||
el = document.documentElement; | ||
} | ||
} | ||
@@ -16,3 +19,3 @@ if (!margin) { | ||
} | ||
var isBody = 'body' === el.nodeName.toLowerCase(); | ||
var isBody = el.nodeName && 'body' === el.nodeName.toLowerCase(); | ||
var scrollLeft = el.scrollLeft; | ||
@@ -19,0 +22,0 @@ var scrollHeight = el.scrollHeight; |
{ | ||
"name": "get-scroll-info", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Get Scroll Information", | ||
@@ -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
1978
36