@cntrl-site/sdk-nextjs 1.9.13-13 → 1.9.13-14

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.
@@ -171,10 +171,10 @@ class InteractionsRegistry {
171
171
  triggerPosition = itemArea.top * window.innerWidth;
172
172
  break;
173
173
  case 'center':
174
- triggerPosition = itemArea.top * window.innerWidth + window.innerHeight / 2;
174
+ triggerPosition = itemArea.top * window.innerWidth - window.innerHeight / 2;
175
175
  break;
176
176
  case 'bottom':
177
- triggerPosition = itemArea.top * window.innerWidth + window.innerHeight;
177
+ triggerPosition = itemArea.top * window.innerWidth - window.innerHeight;
178
178
  break;
179
179
  default:
180
180
  triggerPosition = itemArea.top * window.innerWidth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk-nextjs",
3
- "version": "1.9.13-13",
3
+ "version": "1.9.13-14",
4
4
  "description": "SDK for Next.js",
5
5
  "author": "arsen@momdesign.nyc",
6
6
  "license": "MIT",
@@ -177,10 +177,10 @@ export class InteractionsRegistry implements InteractionsRegistryPort {
177
177
  triggerPosition = itemArea.top * window.innerWidth;
178
178
  break;
179
179
  case 'center':
180
- triggerPosition = itemArea.top * window.innerWidth + window.innerHeight / 2;
180
+ triggerPosition = itemArea.top * window.innerWidth - window.innerHeight / 2;
181
181
  break;
182
182
  case 'bottom':
183
- triggerPosition = itemArea.top * window.innerWidth + window.innerHeight;
183
+ triggerPosition = itemArea.top * window.innerWidth - window.innerHeight;
184
184
  break;
185
185
  default:
186
186
  triggerPosition = itemArea.top * window.innerWidth;