@linear_non/stellar-kit 2.1.18 → 2.1.19

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/events/Raf.js CHANGED
@@ -31,12 +31,6 @@ export default class Raf {
31
31
  this.scroll.current = Math.min(Math.max(this.scroll.current, 0), fh)
32
32
  this.scroll.rounded = Math.min(Math.max(this.scroll.rounded, 0), fh)
33
33
 
34
- if (!kitStore.flags.isSmooth) {
35
- // native scroll mode: ensure the browser scroll is clamped too
36
- const y = Math.min(window.scrollY, fh)
37
- if (window.scrollY !== y) window.scrollTo(0, y)
38
- }
39
-
40
34
  ScrollTrigger.update()
41
35
  }
42
36
 
package/events/Resize.js CHANGED
@@ -71,18 +71,7 @@ export default class Resize {
71
71
  }
72
72
 
73
73
  on() {
74
- let scheduled = false
75
-
76
- const handler = () => {
77
- if (scheduled) return
78
- scheduled = true
79
- requestAnimationFrame(() => {
80
- scheduled = false
81
- this.onResize()
82
- })
83
- }
84
-
85
- window.addEventListener("resize", debounce(handler, 200), { passive: true })
74
+ window.addEventListener("resize", debounce(this.onResize, 200), { passive: true })
86
75
  window.addEventListener("load", this.onLoadOnce, { once: true })
87
76
  }
88
77
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linear_non/stellar-kit",
3
- "version": "2.1.18",
3
+ "version": "2.1.19",
4
4
  "description": "Stellar frontend core for Non-Linear Studio projects.",
5
5
  "main": "index.js",
6
6
  "exports": {