@pushword/js-helper 0.0.109 → 0.0.110

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushword/js-helper",
3
- "version": "0.0.109",
3
+ "version": "0.0.110",
4
4
  "description": "Pushword front end helpers. ",
5
5
  "author": "Robin@PiedWeb <contact@piedweb.com>",
6
6
  "license": "MIT",
@@ -17,7 +17,7 @@ class ScrollYEnhancer {
17
17
  window.isScrolling = false
18
18
 
19
19
  document.querySelectorAll(selector).forEach((element) => {
20
- if (element.scrollHeight <= element.clientHeight - 20) {
20
+ if (element.scrollHeight <= element.clientHeight + 20) {
21
21
  // 20 = padding-bottom
22
22
  element.classList.remove('enhance-scroll-y')
23
23
  return
@@ -142,7 +142,7 @@ class ScrollXEnhancer {
142
142
  window.isScrolling = false
143
143
 
144
144
  document.querySelectorAll(selector).forEach((element) => {
145
- if (element.scrollWidth <= element.clientWidth - 12) {
145
+ if (element.scrollWidth <= element.clientWidth + 12) {
146
146
  // 20 = padding-bottom
147
147
  element.classList.remove('enhance-scroll-x')
148
148
  return