@cocreate/scroll 1.2.19 → 1.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.2.20](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.19...v1.2.20) (2022-01-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * scroll bug ([f67c52b](https://github.com/CoCreate-app/CoCreate-scroll/commit/f67c52bc51be1ebbef9a06a4b103d747934b8253))
7
+
1
8
  ## [1.2.19](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.18...v1.2.19) (2022-01-16)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/scroll",
3
- "version": "1.2.19",
3
+ "version": "1.2.20",
4
4
  "description": "A simple scroll component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "scroll",
package/src/index.js CHANGED
@@ -108,7 +108,7 @@ const CoCreateScroll = {
108
108
  },
109
109
 
110
110
  __runScrollEvent: function(element, info) {
111
-
111
+ if (!element.scrollStatus) return
112
112
  const currentPos = element.scrollStatus.currentPos;
113
113
  const scrollY = window.scrollY;
114
114
  const { upSize, downSize, attrName, values, scrollTop, scrollBottom, scrollLimbo } = info;