Skip to content

Commit

Permalink
fix: comment to explain offset number
Browse files Browse the repository at this point in the history
  • Loading branch information
josephgregoryii committed Jan 5, 2022
1 parent 7b2649a commit 250fe20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const onClientEntry = () => {
};

const shouldUpdateScroll = ({ routerProps: { location } }) => {
// Offset updates scroll to position beneath the I/O Banner on category/search change
const PAGE_OFFSET_HEIGHT = 310;
const IS_IO = location.pathname.includes('instant-observability');

Expand Down

0 comments on commit 250fe20

Please sign in to comment.