get-scroll-info
Advanced tools
Comparing version 0.4.3 to 0.5.0
@@ -60,63 +60,63 @@ "use strict"; | ||
/** | ||
* @type number | ||
* @type number | ||
*/ | ||
(0, _defineProperty2["default"])(this, "top", void 0); | ||
/** | ||
* @type number | ||
* @type number | ||
*/ | ||
(0, _defineProperty2["default"])(this, "right", void 0); | ||
/** | ||
* @type number | ||
* @type number | ||
*/ | ||
(0, _defineProperty2["default"])(this, "bottom", void 0); | ||
/** | ||
* @type number | ||
* @type number | ||
*/ | ||
(0, _defineProperty2["default"])(this, "left", void 0); | ||
/** | ||
* @type number | ||
* @type number | ||
*/ | ||
(0, _defineProperty2["default"])(this, "scrollWidth", void 0); | ||
/** | ||
* @type number | ||
* @type number | ||
*/ | ||
(0, _defineProperty2["default"])(this, "scrollHeight", void 0); | ||
/** | ||
* @type number | ||
* @type number | ||
*/ | ||
(0, _defineProperty2["default"])(this, "scrollNodeWidth", void 0); | ||
/** | ||
* @type number | ||
* @type number | ||
*/ | ||
(0, _defineProperty2["default"])(this, "scrollNodeHeight", void 0); | ||
/** | ||
* @type boolean | ||
* @type boolean | ||
*/ | ||
(0, _defineProperty2["default"])(this, "atTop", void 0); | ||
/** | ||
* @type boolean | ||
* @type boolean | ||
*/ | ||
(0, _defineProperty2["default"])(this, "atRight", void 0); | ||
/** | ||
* @type boolean | ||
* @type boolean | ||
*/ | ||
(0, _defineProperty2["default"])(this, "atBottom", void 0); | ||
/** | ||
* @type boolean | ||
* @type boolean | ||
*/ | ||
(0, _defineProperty2["default"])(this, "atLeft", void 0); | ||
/** | ||
* @type boolean | ||
* @type boolean | ||
*/ | ||
(0, _defineProperty2["default"])(this, "isScrollUp", void 0); | ||
/** | ||
* @type boolean | ||
* @type boolean | ||
*/ | ||
(0, _defineProperty2["default"])(this, "isScrollRight", void 0); | ||
/** | ||
* @type boolean | ||
* @type boolean | ||
*/ | ||
(0, _defineProperty2["default"])(this, "isScrollDown", void 0); | ||
/** | ||
* @type boolean | ||
* @type boolean | ||
*/ | ||
@@ -156,4 +156,5 @@ (0, _defineProperty2["default"])(this, "isScrollLeft", void 0); | ||
} else { | ||
w = el.clientWidth; | ||
h = el.clientHeight; | ||
var _el$scrollWidth, _el$scrollHeight; | ||
w = (_el$scrollWidth = el.scrollWidth) !== null && _el$scrollWidth !== void 0 ? _el$scrollWidth : el.clientWidth; | ||
h = (_el$scrollHeight = el.scrollHeight) !== null && _el$scrollHeight !== void 0 ? _el$scrollHeight : el.clientHeight; | ||
} | ||
@@ -160,0 +161,0 @@ var scrollLeft = el.scrollLeft; |
{ | ||
"version": "0.4.3", | ||
"version": "0.5.0", | ||
"name": "get-scroll-info", | ||
@@ -38,2 +38,3 @@ "repository": { | ||
"mocha": "npm run mochaFor -- 'build/es/**/__tests__/*.mjs'", | ||
"test:report": "npm run build && npm run mochaFor -- --reporter mocha-junit-reporter --reporter-options mochaFile=./test_output/mocha.xml 'build/es/**/__tests__/*.mjs'", | ||
"test": "npm run build && npm run mocha", | ||
@@ -40,0 +41,0 @@ "prepublishOnly": "npm run test" |
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
13855
459