@linear_non/stellar-libs 1.0.41 → 1.0.42

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.41",
3
+ "version": "1.0.42",
4
4
  "description": "Reusable JavaScript libraries for Non-Linear Studio projects.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -13,8 +13,6 @@ export default class Smooth {
13
13
  this.scrollbar = null
14
14
  this.dpr = Math.max(1, Math.round(window.devicePixelRatio || 1))
15
15
 
16
- this._resizeRaf = null
17
-
18
16
  this.init()
19
17
  }
20
18
 
@@ -123,15 +121,8 @@ export default class Smooth {
123
121
  const { isSmooth } = kitStore.flags
124
122
  if (!isSmooth) return
125
123
 
126
- if (this._resizeRaf) cancelAnimationFrame(this._resizeRaf)
127
-
128
- this._resizeRaf = requestAnimationFrame(() => {
129
- this._resizeRaf = null
130
-
131
- this.update(this.elems)
132
-
133
- emitter.emit(EVENTS.APP_SMOOTH_RESIZE)
134
- })
124
+ this.update(this.elems)
125
+ emitter.emit(EVENTS.APP_SMOOTH_RESIZE)
135
126
  }
136
127
 
137
128
  update(elems) {