@linear_non/stellar-kit 1.0.5 → 1.0.6

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/Raf.js +4 -2
  2. package/package.json +1 -1
package/events/Raf.js CHANGED
@@ -41,8 +41,10 @@ export default class Raf {
41
41
  }
42
42
 
43
43
  getScroll() {
44
- const { pageContent } = kitStore
45
- return sniffer.isDevice ? pageContent.parentNode.scrollTop : this.scroll.rounded
44
+ const { pageContent, flags } = kitStore
45
+ const container = pageContent ? pageContent.parentNode : document.body
46
+
47
+ return flags.isSmooth ? this.scroll.rounded : container.scrollTop
46
48
  }
47
49
 
48
50
  clamp() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linear_non/stellar-kit",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Stellar frontend core for Non-Linear Studio projects.",
5
5
  "main": "index.js",
6
6
  "exports": {