@cntrl-site/sdk-nextjs 1.8.15 → 1.8.16

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.
@@ -101,8 +101,8 @@ function useImageFx(canvas, enabled, { imageUrl, fragmentShader, controlsValues
101
101
  stopRendering();
102
102
  }
103
103
  }, {
104
- threshold: 0.1,
105
- rootMargin: '50px'
104
+ threshold: 0,
105
+ rootMargin: '75px'
106
106
  });
107
107
  observer.observe(canvas);
108
108
  return () => {
@@ -104,8 +104,8 @@ function useVideoFx(canvas, enabled, { videoUrl, fragmentShader, controls }, wid
104
104
  stopRendering();
105
105
  }
106
106
  }, {
107
- threshold: 0.1,
108
- rootMargin: '50px'
107
+ threshold: 0,
108
+ rootMargin: '75px'
109
109
  });
110
110
  observer.observe(canvas);
111
111
  return () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk-nextjs",
3
- "version": "1.8.15",
3
+ "version": "1.8.16",
4
4
  "description": "SDK for Next.js",
5
5
  "author": "arsen@momdesign.nyc",
6
6
  "license": "MIT",
@@ -140,8 +140,8 @@ export function useImageFx(
140
140
  }
141
141
  },
142
142
  {
143
- threshold: 0.1,
144
- rootMargin: '50px'
143
+ threshold: 0,
144
+ rootMargin: '75px'
145
145
  }
146
146
  );
147
147
 
@@ -142,8 +142,8 @@ export function useVideoFx(
142
142
  }
143
143
  },
144
144
  {
145
- threshold: 0.1,
146
- rootMargin: '50px'
145
+ threshold: 0,
146
+ rootMargin: '75px'
147
147
  }
148
148
  );
149
149