@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 +1 -1
- package/src/Smooth/index.js +2 -11
package/package.json
CHANGED
package/src/Smooth/index.js
CHANGED
|
@@ -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
|
-
|
|
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) {
|