cue-lang / cue

The home of the CUE language! Validate and define text-based and dynamic configuration
https://cuelang.org
Apache License 2.0
5.16k stars 297 forks source link

cuelang.org: delay displaying the site header until the user scrolls some distance #3525

Open jpluscplusm opened 1 month ago

jpluscplusm commented 1 month ago

One more thought: right now the header reappears as soon as I scroll up by a single pixel. I reckon it should take a little bit more than that, because otherwise it reappears extremely easily - for example, when I scroll down with my fingers, sometimes I'm not perfect and I scroll up by a few pixels at the start or end, due to the nature of how my fingers move. This can make the header re-appear when I don't want it to, causing a bit of frustration as it eats into my reading space.

Originally posted by @mvdan in https://github.com/cue-lang/cue/issues/3058#issuecomment-2074764850

jpluscplusm commented 1 month ago

We can add some logic that will show the header on scroll up after x pixels are scrolled (100 or so?)

Originally posted by @JorindeUsMedia in https://github.com/cue-lang/cue/issues/3058#issuecomment-2416308641