@gxpl/sdk 0.0.47 → 0.0.49

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.
@@ -133,7 +133,7 @@ const Preview = ({ children, relations, startScene }) => {
133
133
  }
134
134
  .preview-inner {
135
135
  width: 100%;
136
- max-height: 844px;
136
+ max-height: 700px;
137
137
  height: 100%;
138
138
  position: relative;
139
139
  display: flex;
@@ -21,8 +21,7 @@ const InteractionsProvider = ({ article, children }) => {
21
21
  if (!registry || !articleRectObserver)
22
22
  return;
23
23
  const handleScroll = () => {
24
- const scrollY = window.scrollY;
25
- registry.notifyScroll(scrollY);
24
+ registry.notifyScroll(articleRectObserver.scroll * articleRectObserver.width);
26
25
  };
27
26
  return articleRectObserver.on('scroll', handleScroll);
28
27
  }, [registry, articleRectObserver]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gxpl/sdk",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "description": "Generic SDK for use in public websites.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",