Skip to content

Commit

Permalink
Merge pull request #397 from code-hike/stable-focus-link
Browse files Browse the repository at this point in the history
Stable dimensions
  • Loading branch information
pomber authored Jul 5, 2023
2 parents c3e90a8 + c7a9d9d commit 2049fb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/mdx/dev/content/scrollycoding-demo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ Morbi quis commodo.

```

Lorem [ipsum](focus://3)

---

## Step 3
Expand Down
4 changes: 2 additions & 2 deletions packages/mdx/src/smooth-code/use-dimensions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ function useDimensions(
const allDeps = [
...deps,
windowWidth,
prevLongestLine,
nextLongestLine,
// prevLongestLine,
// nextLongestLine,
minColumns,
visibility,
]
Expand Down

0 comments on commit 2049fb2

Please sign in to comment.