Skip to content

Commit 5270e2e

Browse files
authored
Prevent MovingDot example from expanding scroll area
1 parent 427f24d commit 5270e2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/learn/updating-objects-in-state.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export default function MovingDot() {
7373
position: 'relative',
7474
width: '100vw',
7575
height: '100vh',
76+
overflow: 'hidden',
7677
}}>
7778
<div style={{
7879
position: 'absolute',
@@ -146,6 +147,7 @@ export default function MovingDot() {
146147
position: 'relative',
147148
width: '100vw',
148149
height: '100vh',
150+
overflow: 'hidden',
149151
}}>
150152
<div style={{
151153
position: 'absolute',

0 commit comments

Comments
 (0)