- applyBearing: use h, not h - rotOffset. The .rec-screen (map + panel) is CSS-rotated by rotOffset in landscape and setBearing adds another rotate on the map pane; subtracting rotOffset cancelled the screen rotation for the map only, gluing course to the portrait top edge while the panel turned. Using h lets the map turn with the screen -> course points to physical top. - Poll: guard the requestAnimationFrame yield with !document.hidden. rAF never fires while the screen is off, so awaiting it there hung the import loop and froze point import mid-walk (regression from the progressive-draw change). - recoverSession: import missing native points by the SET of existing timestamps instead of ts > maxDbTs. Sparse screen-gated points can have a late max ts, so the old check imported nothing and left the track full of gaps; also pass sensorData so bearing/accel/gyro are stored. |
||
|---|---|---|
| .. | ||
| css | ||
| data | ||
| img | ||
| js | ||
| lib | ||
| index.html | ||