A fitness balance app with calories calculator (consumed+burnt), extensive mapping/routing capabilities route for your walks and bike rides
Find a file
4aiman 0701fbd723 Rewrite modal navigation: fix 5 back-gesture bugs
Root causes fixed:
1. closeModal had replaceState AFTER async history.back() — replaceState
   overwrote the current entry before back() fired, causing skip-to-today
2. Chart fullscreen in modals used pushState — each open/close cycle
   added extra history entries, exhausting the stack
3. Map collapse in popHandler didn't call invalidateSize/fitBounds

Changes:
- closeModal() simplified: just remove overlay + history.back()
  No more replaceState race condition
- Chart/map fullscreen inside modals: NO pushState, CSS-only
  popHandler detects .chart-full/.sd-map-full and collapses, re-pushes modal
- Map collapse: uses saved _leafletMap ref and _bounds for proper resize
- Init: renderScreen with fromPopstate=true to avoid navStack duplication
- Modal popHandler searches within overlay only (not global document)

Fixed user-reported bugs:
1. Map collapse keeps zoom → now calls invalidateSize + fitBounds
2. Chart open → back → back = app exit → now back closes chart, back closes modal
3. "<-" goes to Today instead of track list → fixed closeModal race
4. X on chart → back = correct → was already working
5. Chart open → back back = app exit → same fix as #2
2026-05-25 18:18:07 +03:00
frontend Rewrite modal navigation: fix 5 back-gesture bugs 2026-05-25 18:18:07 +03:00
src GPS point ordering + GPX export + chart zoom fixes 2026-05-16 21:21:13 +03:00
src-tauri Max speed filter in native service, fix recalculate bugs 2026-05-25 15:20:24 +03:00
.gitignore Initial commit: BalDav health tracker 2026-05-13 10:21:24 +03:00
data.js GPS point ordering + GPX export + chart zoom fixes 2026-05-16 21:21:13 +03:00
index.html GPS point ordering + GPX export + chart zoom fixes 2026-05-16 21:21:13 +03:00
package-lock.json GPS point ordering + GPX export + chart zoom fixes 2026-05-16 21:21:13 +03:00
package.json Initial commit: BalDav health tracker 2026-05-13 10:21:24 +03:00