@hashrytech/quick-components-kit 0.16.5 → 0.16.7
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 +12 -0
- package/dist/actions/disable-scroll.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @hashrytech/quick-components-kit
|
|
2
2
|
|
|
3
|
+
## 0.16.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: reverting last change and remove smooth scroll to get back to original position for disable scroll
|
|
8
|
+
|
|
9
|
+
## 0.16.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- refactor: Going back to previous approach for disable-scroll
|
|
14
|
+
|
|
3
15
|
## 0.16.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -27,7 +27,8 @@ export function disableScroll(node, enabled = true) {
|
|
|
27
27
|
document.body.style.width = originalBodyWidth;
|
|
28
28
|
document.body.style.top = originalTop;
|
|
29
29
|
document.documentElement.style.overflowY = originalOverflow;
|
|
30
|
-
|
|
30
|
+
// Instantly restore scroll position without animation
|
|
31
|
+
window.scrollTo({ top: scrollTop, behavior: 'auto' });
|
|
31
32
|
}
|
|
32
33
|
if (node && enabled)
|
|
33
34
|
applyLock();
|