From 250fe206e2ee2fa71e1b2d050be7ce913bcd03c2 Mon Sep 17 00:00:00 2001 From: Joe Gregory Date: Wed, 5 Jan 2022 14:12:44 -0800 Subject: [PATCH] fix: comment to explain offset number --- gatsby-browser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gatsby-browser.js b/gatsby-browser.js index 497c808bc..c882fdadd 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -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');