For almost a year I'm using a transparent box as a trigger to collapse part of the header, using ViewportEnter and ViewportLeave.
In more than one site.
A severe problem appears lately and here is an example in one of the sites.
I've checked the code and re-positioned the box and it looks fine in the editors' preview mode.
when scrolling up and down there is a point where the header starts flickering between it's two states.
This happens on Firefox and Chrome.
It does not happen on Edge and Opera.
Same page scrolling on different browsers
(First- firefox, second - edge, then opera and last is chrome)
This is the page:
Please check this problem not in the editor preview