feat: increase button size while driving
Some checks failed
TrafficCue CI / check (push) Failing after 1m59s
TrafficCue CI / build (push) Successful in 9m50s
TrafficCue CI / build-android (push) Successful in 27m5s

This commit is contained in:
2025-10-15 17:24:54 +02:00
parent 60e074a70f
commit c3dbbf2637
19 changed files with 195 additions and 21 deletions

View File

@ -33,6 +33,12 @@ export const location = $state({
lastUpdate: null as Date | null,
});
const _isDriving = $derived(location.speed > (7 / 3.6));
export function isDriving() {
return _isDriving;
}
export function watchLocation() {
if (navigator.geolocation) {
navigator.geolocation.watchPosition(