You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit changes how the search bar is brought into view on desktop as
brought up in #1860: when using one of the keyboard shortcuts to focus
the input, the entire page jumps to the top making you lose your scroll
position. On mobile, technically smaller screens, this is remedied by
causing the input to slide into view on scroll up, but I don't believe
this is a desirable solution for desktop.
The following changes are introduced:
* Using one of the keyboard shortcuts will focus the search input
causing it to stick to the top.
* It will continue to stick to the top so long as it is focused
allowing you to scroll with it open.
* The slide-on-scroll effect has been changed to only fire on
touch-enabled devices as opposed to just smaller screens. This is
allows us to make the hexdocs window very small and still use
keyboard shortcuts--Useful on laptops.
Closes#1860
0 commit comments