@linear_non/stellar-libs 1.1.0 → 1.1.1
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 +1 -1
- package/src/Smooth/index.js +4 -2
package/package.json
CHANGED
package/src/Smooth/index.js
CHANGED
|
@@ -125,8 +125,9 @@ export default class Smooth {
|
|
|
125
125
|
|
|
126
126
|
update(elems) {
|
|
127
127
|
kitStore.flags.isResizing = true
|
|
128
|
+
const root = kitStore.currentPage || document
|
|
128
129
|
this.scroll.setScrollBounds()
|
|
129
|
-
this.elems = elems || qsa("[data-smooth]")
|
|
130
|
+
this.elems = elems || qsa("[data-smooth]", root)
|
|
130
131
|
this.scrollbar?.update()
|
|
131
132
|
this.getSections()
|
|
132
133
|
this.transformSections()
|
|
@@ -155,7 +156,8 @@ export default class Smooth {
|
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
init(elems) {
|
|
158
|
-
|
|
159
|
+
const root = kitStore.currentPage || document
|
|
160
|
+
this.elems = elems || qsa("[data-smooth]", root)
|
|
159
161
|
|
|
160
162
|
this.scrollbar = new Scrollbar({
|
|
161
163
|
container: kitStore.currentPage,
|