Help to hide header in my app

Is working, but the workflow behavior it’s strange, always hide when I scroll down but when scroll up sometimes shows up and sometimes doesn’t,

and about your question, the answer is no, my header is not a floating group it’s a normal header, does this affect the workflow in some way?