Skip to content

Commit 2df77f1

Browse files
author
takuma-hmng8
committed
fix bug
1 parent 8b8c5d5 commit 2df77f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/domSyncer/DomSyncer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ export const DomSyncer = ({ state }: { state: number }) => {
129129

130130
contentArr.current.forEach((content, i) => {
131131
if (
132-
domSyncerObj.domRects[i] &&
132+
domSyncerObj.DOMRects[i] &&
133133
domSyncerObj.isIntersecting(i, false)
134134
) {
135135
content.style.opacity = "1.0";
136-
content.style.top = `${domSyncerObj.domRects[i].top}px`;
137-
content.style.left = `${domSyncerObj.domRects[i].left}px`;
136+
content.style.top = `${domSyncerObj.DOMRects[i].top}px`;
137+
content.style.left = `${domSyncerObj.DOMRects[i].left}px`;
138138
}
139139
});
140140

0 commit comments

Comments
 (0)