feklee / rotogamesq

ROTOGAMEsq — https://sq.rotogame.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When input has focus: move, don't redraw

feklee opened this issue · comments

When the input field for entering a new hiscores entry has input focus and the screen resizes, then move hiscores elements, don't redraw them. Do that even if the list of hiscores changes.

Rationale:

  • At least with some iOS versions, keyboard focus cannot be reassigned after a redraw.
  • At least with some Firefox OS versions, the screen flickers when redrawing while the virtual keyboard slides in.
  • It could be confusing if the input field goes away due to better hiscores being loaded from the server.

Redraw hiscores entries:

  • when here is no input focus, or
  • when changing to another board.