Files
TREK/client/src
Maurice fcb532cdea fix(map): stop MapLibre mouse rotation from reversing near mid-screen
Since MapLibre 5's camera rewrite, the right-button rotate handler flips
its sign whenever the cursor sits above a mid-screen line it derives by
re-projecting the map center. That line drifts with the bearing by a
fraction of a pixel, so inside the 100px band around the screen center a
steady horizontal drag lands alternately above and below it — every
processed movement reverses the previous one and the camera ping-pongs in
place instead of rotating (#1545). A real hand crossing the line mid-drag
flips the rotation direction outright. maplibre-gl 4.x rotated from plain
horizontal movement and had none of this.

Passing aroundCenter: false opts the handler out of the around-center
mode and restores the 4.x/mapbox-gl behaviour: horizontal drag rotates,
vertical drag pitches, in one continuous motion. Applied to all three GL
map builds (planner, journey, settings preview); mapbox-gl keeps its
options untouched.
2026-07-13 22:20:14 +02:00
..
2026-07-05 01:13:04 +02:00
2026-07-13 12:40:00 +02:00
2026-07-05 01:13:04 +02:00
2026-07-05 01:13:04 +02:00
2026-07-11 19:02:34 +02:00
2026-07-05 01:13:04 +02:00
2026-07-05 01:13:04 +02:00
2026-07-11 19:02:34 +02:00
2026-07-13 12:40:00 +02:00
2026-07-11 19:02:34 +02:00
2026-07-13 12:40:00 +02:00
2026-07-11 19:02:34 +02:00
2026-07-11 19:02:34 +02:00
2026-07-05 01:13:04 +02:00
2026-06-16 22:22:45 +02:00