@cocreate/scroll 1.2.19 → 1.2.23
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 +28 -0
- package/docs/index.html +1 -1
- package/package.json +3 -3
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## [1.2.23](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.22...v1.2.23) (2022-02-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump dependency versions ([769e1a9](https://github.com/CoCreate-app/CoCreate-scroll/commit/769e1a981b32764f81690f66fd463cf06dc96d9a))
|
|
7
|
+
|
|
8
|
+
## [1.2.22](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.21...v1.2.22) (2022-02-03)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* replaced show and hide class hidden with attribute hidden ([fc5f3ae](https://github.com/CoCreate-app/CoCreate-scroll/commit/fc5f3ae759df2d4d31fefc6a419acb34c3c1bfc8))
|
|
14
|
+
|
|
15
|
+
## [1.2.21](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.20...v1.2.21) (2022-02-01)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* update dependency versions ([300468f](https://github.com/CoCreate-app/CoCreate-scroll/commit/300468ff42ec17c444baa0c9a4d9108288c5e95f))
|
|
21
|
+
|
|
22
|
+
## [1.2.20](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.19...v1.2.20) (2022-01-23)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* scroll bug ([f67c52b](https://github.com/CoCreate-app/CoCreate-scroll/commit/f67c52bc51be1ebbef9a06a4b103d747934b8253))
|
|
28
|
+
|
|
1
29
|
## [1.2.19](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.18...v1.2.19) (2022-01-16)
|
|
2
30
|
|
|
3
31
|
|
package/docs/index.html
CHANGED
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
<div class="container svColumn overflow:hidden card position:relative border-radius:2px width:auto height:100%" id="sandbox">
|
|
126
126
|
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
127
127
|
<a class="margin-right:10px" id="code" show="#preview" hide="#code, #view"><i class="far fa-eye"></i></a>
|
|
128
|
-
<a class="margin-right:10px
|
|
128
|
+
<a class="margin-right:10px" id="preview" show="#code, #view" hide="#preview" hidden><i class="fas fa-code"></i></a>
|
|
129
129
|
<a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
|
|
130
130
|
</div>
|
|
131
131
|
<div class="svRow">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/scroll",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.23",
|
|
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",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"webpack-log": "^3.0.1"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@cocreate/docs": "^1.2.
|
|
65
|
-
"@cocreate/observer": "^1.
|
|
64
|
+
"@cocreate/docs": "^1.2.67",
|
|
65
|
+
"@cocreate/observer": "^1.4.2"
|
|
66
66
|
}
|
|
67
67
|
}
|
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;
|