1
0
watterblock/ui
Adrian Wannenmacher eb20849bd8
make main buttons redraw syncronously
By main buttons I mean the "new game", "they win" and "we win" buttons.
They have in common that they scroll to the bottom of the view, to make
sure the user can immediately see their effect.

This change fixes two bugs:

1. The scrolling did not work reliably. While it would always scroll a
   bit, it would usually not go to the bottom exactly. This meant that
   most of the time the bottom digits were only half visible. Now it
   scrolls reliably all the way.

2. When hitting the win buttons in rapid succession it was possible to
   trigger both within a single redraw cycle. This caused the UI to set
   a single rounds winner to both teams, which the round model rightly
   rejected. Now, by the time the second event is registered, the button
   has already been disabled, or the round been replaced by a new one.
2026-03-10 00:40:02 +01:00
..
base_view.js implement session deletion button in session list 2026-03-09 20:49:49 +01:00
box.css add info page 2026-03-05 22:14:21 +01:00
button.css redesign session list 2026-03-05 02:51:51 +01:00
field.css refactor style sheets 2026-03-05 01:55:45 +01:00
game.js switch over to mithril fragment method 2026-02-22 12:51:44 +01:00
info_view.js improve info page a bit 2026-03-07 15:47:20 +01:00
layout.css add info page 2026-03-05 22:14:21 +01:00
layout.js implement splash screen 2026-03-09 20:47:21 +01:00
round.css refactor style sheets 2026-03-05 01:55:45 +01:00
round.js make main buttons redraw syncronously 2026-03-10 00:40:02 +01:00
session_head.js refactor style sheets 2026-03-05 01:55:45 +01:00
session_list.js add key to sessions list 2026-03-09 21:35:43 +01:00
session-list.css clean up leftover CSS refactor styles 2026-03-09 21:22:32 +01:00
session-view.css refactor style sheets 2026-03-05 01:55:45 +01:00
session.js make main buttons redraw syncronously 2026-03-10 00:40:02 +01:00
splash.css actually implement splash screens 2026-03-09 21:02:50 +01:00