Fix position when scrolling gap

Here’s a visual reference: How do I make the nav menu sticky on Figma? - Album on Imgur

When I click “Fix position when scrolling” there’s a gap as large as the header so when I scroll there’s an awkward space. How do I fix this?

I don’t think there’s a solution to that, this might be involved with having events being triggered by scroll, hopefully Figma will implement those in the near future?