Trigger reposition of mega menu

Only a feature request if it isn’t already possible which I kinda think it might be, just not sure how.

Is there a way to re-trigger the function that calculates the position of the mega menu. I guess I could fiddle around and write my own but would be neat if we can access the one that bricks is using somehow. Or at least put it in the docs so we can steal the code and implement it hehe.

Example scenario im currently facing:

On my Homepage, the hero section is laid out in a way that requires the nav to be left aligned. On scroll however, that would look kinda off so I’m transitioning it to the way it is on the rest of the site, centered within a default width container.

Right now my choices are either to

  1. Just leave the nav on the left on scroll on the homepage
  2. Reposition the mega menu using css after scroll. This kinda works but not really consistently without add more media queries than I’d like.