@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linear_non/stellar-libs",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Reusable JavaScript libraries for Non-Linear Studio projects.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -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() {