Skip to content

Commit c2e07b5

Browse files
Round scrolly message values
1 parent c7cf083 commit c2e07b5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

dotcom-rendering/src/components/InteractiveAtom.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const iframe = css`
2020
position: sticky;
2121
top: 0;
2222
height: 100vh;
23-
height: 100dvh;
2423
overflow: hidden;
2524
}
2625
`;

dotcom-rendering/src/components/InteractiveAtomMessenger.importable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const InteractiveAtomMessenger = ({ id }: Props) => {
7272
const rect = container.getBoundingClientRect();
7373
if (rect.top > 0) return setScroll(0);
7474
if (rect.top < -rect.height) return setScroll(1);
75-
setScroll(-rect.top);
75+
setScroll(-Math.round(rect.top));
7676
});
7777
};
7878

0 commit comments

Comments
 (0)