Start anywhere: pick any city with transit as your home

This commit is contained in:
Frederic Jung 2026-10-28 08:30:17 +01:00
parent 87fac683f0
commit 8b8bfadbaa
No known key found for this signature in database
11 changed files with 78 additions and 4 deletions

View file

@ -3,7 +3,7 @@ let pressing=false;
document.addEventListener('pointerdown',e=>{if(e.target.closest('#panel,#left,#dash,#bankBox,#modal,#tabbar,#toasts'))pressing=true;});
addEventListener('pointerup',()=>setTimeout(()=>pressing=false,0));
addEventListener('pointercancel',()=>{pressing=false;});addEventListener('blur',()=>{pressing=false;});
document.addEventListener('change',e=>{const el=e.target.closest('[data-chg]');if(!el||(!S&&el.dataset.chg!=='langSet'))return;const fn=ACT[el.dataset.chg];if(fn)fn({v:el.value});});
document.addEventListener('change',e=>{const el=e.target.closest('[data-chg]');if(!el||(!S&&!['langSet','pickHome'].includes(el.dataset.chg)))return;const fn=ACT[el.dataset.chg];if(fn)fn({v:el.value});});
/* Taps that land on the wrong thing (#44): a real tap only fires the button it went down on, never something that
appeared or moved under the finger, nothing behind a menu that opened or closed mid-tap, and no toast button in
the first half second after the toast popped up. Synthetic clicks (keyboard, tests) are not affected. */