@linear_non/stellar-kit 2.1.1 → 2.1.2

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.
Files changed (2) hide show
  1. package/events/Resize.js +2 -5
  2. package/package.json +1 -1
package/events/Resize.js CHANGED
@@ -41,8 +41,10 @@ export default class Resize {
41
41
  }
42
42
 
43
43
  onLoadOnce = () => {
44
+ flags.isResizing = true
44
45
  emitter.emit(EVENTS.APP_RESIZE)
45
46
  ScrollTrigger.refresh()
47
+ flags.isResizing = false
46
48
  }
47
49
 
48
50
  reloadIfBreakpointChanged() {
@@ -76,10 +78,5 @@ export default class Resize {
76
78
  init() {
77
79
  this.on()
78
80
  this.onResize() // Run once on init
79
-
80
- raf2(() => {
81
- emitter.emit(EVENTS.APP_RESIZE)
82
- ScrollTrigger.refresh()
83
- })
84
81
  }
85
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linear_non/stellar-kit",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Stellar frontend core for Non-Linear Studio projects.",
5
5
  "main": "index.js",
6
6
  "exports": {