massif-press / compcon

Digital character creator and player sheets for the LANCER TTRPG
https://compcon.app
GNU General Public License v3.0
271 stars 98 forks source link

[BUG] Scroll Arrows for Initiative Tracker in Mission Runner #2385

Open merelydovely opened 3 months ago

merelydovely commented 3 months ago

Describe the bug Scroll Function for Initiative Tracker in Mission Runner Does Not Work or Works Inconsistently

To Reproduce Steps to reproduce the behavior:

  1. Create an encounter with enough combatants to fill the initiative tracker in Mission Runner (tester started with over 11 combatants and worked up) and add this encounter to a mission.
  2. Load aforementioned mission into Mission Runner.
  3. Attempt to use scroll arrows in initiative tracker
  4. If arrows initially work while the starting PC is highlighted, click into several other combatants and THEN attempt to use the scroll arrows.
  5. At some point, clicking on the scroll arrow will do nothing to change the view, or else clicking will loop the view backward rather than progress in the direction indicated.

Expected behavior Clicking on scroll arrows reliably changes the viewable portion of the initiative tracker in the direction indicated by the arrow.

Screenshots initiativetrackerbug_screenshot

Desktop:

Additional context More testing needed to confirm. Bug was reported to me by our GM using Chrome Applet on Windows 10 and 11 (two machines.) On a Windows 11 machine, I tested encounters with 13, 14, 16, 17, 18, 19 and 20 combatants in the tracker on both Chrome and Firefox browsers. At 17 combatants and below, the arrow would always work while the tracker was on the starting PC, but would work inconsistently if another combatant was highlighted. At 19-20 combatants, the arrow NEVER worked while the starting PC was highlighted, but worked inconsistently if other combatants were clicked instead. Sometimes it would only scroll partway back to the starting point (as seen in the below screenshot where 'TURN PENDING' is cut off) and if the left arrow was clicked again at that point, the view would slide back to the right. image

At 18 combatants, the behavior was different between Chrome and Firefox - the Firefox tracker would not move at all if you clicked the arrows regardless of which combatant was higlighted, while in Chrome the starting PC and many other combatants let the arrows work with a few exceptions.