I checked with bookdown-demo and if I set
toolbar:
position: static
In gitbook config, I correctly get a fixed toolbar, i.e if I scoll down on a long page the toolbar disappear from the screen as it is static at the top of the page, and not fixed as the top of the screen.
Seems to work fine.Maybe a browser issue ?