@linear_non/stellar-libs 1.0.15 → 1.0.16
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
|
@@ -115,13 +115,11 @@ export default class Smooth {
|
|
|
115
115
|
|
|
116
116
|
update(elems) {
|
|
117
117
|
kitStore.flags.isResizing = true
|
|
118
|
-
|
|
119
118
|
this.scroll.setScrollBounds()
|
|
120
119
|
this.elems = elems || qsa("[data-smooth]")
|
|
121
120
|
this.scrollbar.update()
|
|
122
121
|
this.getSections()
|
|
123
122
|
this.transformSections()
|
|
124
|
-
|
|
125
123
|
kitStore.flags.isResizing = false
|
|
126
124
|
}
|
|
127
125
|
|
|
@@ -132,6 +130,10 @@ export default class Smooth {
|
|
|
132
130
|
on() {
|
|
133
131
|
emitter.on(EVENTS.APP_TICK, this.tick)
|
|
134
132
|
emitter.on(EVENTS.APP_RESIZE, this.resize)
|
|
133
|
+
|
|
134
|
+
window.addEventListener("load", () => this.update(), {
|
|
135
|
+
once: true,
|
|
136
|
+
})
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
off() {
|