Files
via/maplibre/js.go
Ryan Hamamura a6d18273e9
All checks were successful
CI / Build and Test (push) Successful in 41s
CI / Build and Test (pull_request) Successful in 37s
fix: prevent marker snap-back during drag via PubSub echo
When dragging a marker in a multi-client PubSub setup, the server echoes
position updates back to the originating client. The data-effect would
then call setLngLat with the stale echoed position, snapping the marker
back while the user had already dragged further.

Add a per-marker _dragging flag: set on dragstart, cleared after the
final dragend writeback. The signal→position effect skips setLngLat
(and rotation) while the flag is true.
2026-02-20 16:49:33 -10:00

19 KiB