Show/hide navbar on scroll glitching

Hey guys,

I’ve got an interaction for the progress bar as the page scrolls and to hide the nav bar when scrolling down and show it when scrolling up. I’ve noticed that for both the case study pages the nav bar is hidden but shows for a split second when it reaches the Approach section and I can’t figure out why this is.

The nav bar has fixed positioning and I’ve checked the disable scroll offset when fixed option.

Any help would be greatly appreciated. Thanks!

EDIT: This doesn’t show on the preview so here is a link to the live site:

Here is my public share link: LINK
(how to access public share link)