@cocreate/scroll 1.2.16 → 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,31 @@
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
+
8
+ ## [1.2.19](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.18...v1.2.19) (2022-01-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update class overflow:overlay to overflow:auto ([bd60036](https://github.com/CoCreate-app/CoCreate-scroll/commit/bd6003620fa1d563c84fd4c4f279896b6ff64154))
14
+
15
+ ## [1.2.18](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.17...v1.2.18) (2022-01-01)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * get-value attribute value now supports a selector added # to all values currently in get-value attributes ([fbbb310](https://github.com/CoCreate-app/CoCreate-scroll/commit/fbbb310eaf7ac7a6f3e5078b532ceafd9498657d))
21
+
22
+ ## [1.2.17](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.16...v1.2.17) (2022-01-01)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * removed data- from attributes ([0a5996a](https://github.com/CoCreate-app/CoCreate-scroll/commit/0a5996a174492ba2d88a495c37e2d743a5e14e55))
28
+
1
29
  ## [1.2.16](https://github.com/CoCreate-app/CoCreate-scroll/compare/v1.2.15...v1.2.16) (2021-12-15)
2
30
 
3
31
 
package/demo/index.html CHANGED
@@ -187,11 +187,11 @@
187
187
 
188
188
  <div class="width:100% display:inline-block text-align:center padding-bottom:20px font-size:21px border-bottom:1px_solid_white">
189
189
  <ul class="padding-0px list-style-type:none justify-content:center display:flex">
190
- <li class="padding:0px_15px"><a href="#" class="share color:white" data-network='facebook' title="Share on Facebook"><i class="fab fa-facebook-f footer-icon"></i></a></li>
191
- <li class="padding:0px_15px"><a href="#" class="share color:white" data-network='twitter'><i class="fab fa-twitter footer-icon"></i></a></li>
192
- <li class="padding:0px_15px"><a href="#" class="share color:white" data-network='google'><i class="fab fa-google-plus-g footer-icon"></i></a></li>
193
- <li class="padding:0px_15px"><a href="#" class="share color:white" data-network='linkedin' ><i class="fab fa-linkedin-in footer-icon"></i></a></li>
194
- <li class="padding:0px_15px"><a href="#" class="share color:white" data-network='pintrest' ><i class="fab fa-pinterest-p footer-icon"></i></a></li>
190
+ <li class="padding:0px_15px"><a href="#" class="share color:white" social-network='facebook' title="Share on Facebook"><i class="fab fa-facebook-f footer-icon"></i></a></li>
191
+ <li class="padding:0px_15px"><a href="#" class="share color:white" social-network='twitter'><i class="fab fa-twitter footer-icon"></i></a></li>
192
+ <li class="padding:0px_15px"><a href="#" class="share color:white" social-network='google'><i class="fab fa-google-plus-g footer-icon"></i></a></li>
193
+ <li class="padding:0px_15px"><a href="#" class="share color:white" social-network='linkedin' ><i class="fab fa-linkedin-in footer-icon"></i></a></li>
194
+ <li class="padding:0px_15px"><a href="#" class="share color:white" social-network='pintrest' ><i class="fab fa-pinterest-p footer-icon"></i></a></li>
195
195
  </ul>
196
196
  </div>
197
197
 
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:overlay Documentation | CoCreateJS </title>
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:overlay">
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:overlay</h2>
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:overlay" target="_blank" class="margin-right:15px"><i class="fab fa-github"></i></a>
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">&lt;script&gt;https://cdn.cocreate.app/scroll/latest/overflow:overlay.min.js&lt;/script&gt;</code></pre>
57
+ <pre><code class="language-html">&lt;script&gt;https://cdn.cocreate.app/scroll/latest/overflow:auto.min.js&lt;/script&gt;</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"]'>
@@ -138,7 +138,7 @@
138
138
  <div class="svSplitter svHorizontal"> </div>
139
139
 
140
140
  <div class="svPanel">
141
- <iframe get-value="demo" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
141
+ <iframe get-value="#demo" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
142
142
  </div>
143
143
 
144
144
  </div>
@@ -149,7 +149,7 @@
149
149
  </div>
150
150
 
151
151
  </div>
152
- <button href="https://github.com/CoCreate-app/overflow:overlay/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%">
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.16",
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;