@cntrl-site/sdk-nextjs 1.9.13-5 → 1.9.13-7
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.
|
@@ -151,7 +151,7 @@ class InteractionsRegistry {
|
|
|
151
151
|
notifyScroll(position) {
|
|
152
152
|
var _a, _b, _c;
|
|
153
153
|
const timestamp = Date.now();
|
|
154
|
-
const item = this.items.find((item) => item.id ===
|
|
154
|
+
const item = this.items.find((item) => item.id === this.items[0].id);
|
|
155
155
|
const testtop = item.area[this.layoutId].top;
|
|
156
156
|
for (const interaction of this.interactions) {
|
|
157
157
|
const currentStateId = this.getCurrentStateByInteractionId(interaction.id);
|
package/package.json
CHANGED
|
@@ -159,7 +159,7 @@ export class InteractionsRegistry implements InteractionsRegistryPort {
|
|
|
159
159
|
|
|
160
160
|
notifyScroll(position: number) {
|
|
161
161
|
const timestamp = Date.now();
|
|
162
|
-
const item = this.items.find((item) => item.id ===
|
|
162
|
+
const item = this.items.find((item) => item.id === this.items[0].id)!;
|
|
163
163
|
const testtop = item.area[this.layoutId].top;
|
|
164
164
|
for (const interaction of this.interactions) {
|
|
165
165
|
const currentStateId = this.getCurrentStateByInteractionId(interaction.id);
|