Dsek-LTH / web

The D-guild's primary web page
https://dsek.se
European Union Public License 1.2
22 stars 9 forks source link

Searching for songs on mobile is incredibly annoying #553

Open danieladugyan opened 2 weeks ago

danieladugyan commented 2 weeks ago

Description

The songbook in the app has a search field that loses focus whenever the user stops typing.

Steps to reproduce

  1. Go to https://www.dsek.se/songbook on a phone.
  2. Type some random input and then stop typing.
  3. Notice that as soon as you stop typing, a query will be executed and this makes the keyboard disappear.
fgren commented 2 weeks ago

Potential solution: Increase the timeout between when the user stops typing and when the search gets made?

fgren commented 2 days ago

Partially fixed by #581 , but should probably be redone in a better way.

Fiery-132 commented 2 hours ago

There is an option noScroll in the goto function. Maybe that could fix it?

await goto(`${i18n.route($page.url.pathname)}?${urlParams.toString()}`, {
  replaceState: true,
  noScroll: true,
});