Stick Nav - Need Minor Tweak

I know there have been several long posts about Sticky Menus, but this is just one minor problem that I didn’t see a solution to in any of the posts, although I could have missed it.

The sticky menu works, but when you scroll down then resize the browser, the sticky menu pushes down away from the top (same distance from the top as when you first load the page). It corrects itself when you scroll further after resizing, but it still bothers me that it does that. Can anyone help?

Here’s the file:

Sticky (541.6 KB)

Sorry, same issue here
I used a tested code but something is wrong.