@cocreate/scroll 1.2.18 → 1.2.22
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 +7 -7
- package/package.json +3 -3
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## [1.2.22](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.21...v1.2.22) (2022-02-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* replaced show and hide class hidden with attribute hidden ([fc5f3ae](https://github.com/CoCreate-app/CoCreate-scroll/commit/fc5f3ae759df2d4d31fefc6a419acb34c3c1bfc8))
|
|
7
|
+
|
|
8
|
+
## [1.2.21](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.20...v1.2.21) (2022-02-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update dependency versions ([300468f](https://github.com/CoCreate-app/CoCreate-scroll/commit/300468ff42ec17c444baa0c9a4d9108288c5e95f))
|
|
14
|
+
|
|
15
|
+
## [1.2.20](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.19...v1.2.20) (2022-01-23)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* scroll bug ([f67c52b](https://github.com/CoCreate-app/CoCreate-scroll/commit/f67c52bc51be1ebbef9a06a4b103d747934b8253))
|
|
21
|
+
|
|
22
|
+
## [1.2.19](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.18...v1.2.19) (2022-01-16)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* update class overflow:overlay to overflow:auto ([bd60036](https://github.com/CoCreate-app/CoCreate-scroll/commit/bd6003620fa1d563c84fd4c4f279896b6ff64154))
|
|
28
|
+
|
|
1
29
|
## [1.2.18](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.17...v1.2.18) (2022-01-01)
|
|
2
30
|
|
|
3
31
|
|
package/docs/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta charset="utf-8">
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
-
<title>overflow:
|
|
8
|
+
<title>overflow:auto Documentation | CoCreateJS </title>
|
|
9
9
|
<link rel="icon" type="image/png" sizes="32x32" href="https://cocreate.app/images/favicon.ico">
|
|
10
10
|
<meta name="description" content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
|
|
11
11
|
<meta name="keywords" content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
<menu collection="files" document_id="603717b07de7fb350ae9fec8" name="src"></menu>
|
|
26
26
|
<div resize="right"></div>
|
|
27
27
|
</sidenav>
|
|
28
|
-
<main class="padding-top:15px padding:15px@lg@xl" content_id="content" id="overflow:
|
|
28
|
+
<main class="padding-top:15px padding:15px@lg@xl" content_id="content" id="overflow:auto">
|
|
29
29
|
<div class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
|
|
30
30
|
<div class="display:flex align-items:center">
|
|
31
|
-
<h2>overflow:
|
|
31
|
+
<h2>overflow:auto</h2>
|
|
32
32
|
</div>
|
|
33
33
|
<div class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
|
|
34
34
|
<div class="display:flex align-items:center transition:0.3s padding-left:10px" share-network="true" share-text="Enter decription here" share-title="testing im a title" share-height="600" share-width="700" share-media="https://cdn.cocreate.app/docs/scroll.png"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</div>
|
|
41
41
|
<a class="margin-right:15px" share-network='share' title="Share on share"><i class="fas fa-share-alt"></i></a>
|
|
42
42
|
</div>
|
|
43
|
-
<a href="https://github.com/CoCreate-app/overflow:
|
|
43
|
+
<a href="https://github.com/CoCreate-app/overflow:auto" target="_blank" class="margin-right:15px"><i class="fab fa-github"></i></a>
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
46
46
|
<h1 class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">A headless vinilla javascript micro component. Easy configuration using HTML5 attributes or Javscript api.</h1>
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
</div>
|
|
55
55
|
<pre><code class="language-bash">npm i @cocreate/scroll</code></pre>
|
|
56
56
|
<p class="padding:10px_0px line-height:1.5">Or you can use cdn link:</p>
|
|
57
|
-
<pre><code class="language-html"><script>https://cdn.cocreate.app/scroll/latest/overflow:
|
|
57
|
+
<pre><code class="language-html"><script>https://cdn.cocreate.app/scroll/latest/overflow:auto.min.js</script></code></pre>
|
|
58
58
|
|
|
59
59
|
<div id="scroll-usage" class="margin-top:80px border-bottom:1px_solid_lightgrey" scroll scroll-intersect="color:dodgerblue" scroll-target="#scroll-usage-section">
|
|
60
60
|
<span class="display:flex align-items:center width:fit-content" hover="display:block!important" hover-target='[href="#scroll-usage"]'>
|
|
@@ -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">
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
</div>
|
|
150
150
|
|
|
151
151
|
</div>
|
|
152
|
-
<button href="https://github.com/CoCreate-app/overflow:
|
|
152
|
+
<button href="https://github.com/CoCreate-app/overflow:auto/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..." target="_blank" class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue grow-hover border-radius:50%">
|
|
153
153
|
<i class="fas fa-pencil-alt"></i>
|
|
154
154
|
</button>
|
|
155
155
|
</main>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/scroll",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.22",
|
|
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.65",
|
|
65
|
+
"@cocreate/observer": "^1.4.0"
|
|
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;
|