mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Popup has delay (lags) compared to marker on mapMove and animations

Open mateusz-kawka opened this issue 2 years ago • 2 comments

mapbox-gl-js version: currently 3.0.0 But I've had this problem for over a year, before I had 2.15.0 browser: i test it on latest chrome, firefox & safari ( desktop & mobile )

Link to Demonstration

Here is my example https://github.com/mapbox/mapbox-gl-js/assets/76514277/57b5625b-c666-4c3e-b3c9-cbc55f186cff but same problem is on docs example https://docs.mapbox.com/mapbox-gl-js/example/popup/ ( on my video im using mapbox-gl-animated-popup but i test default popup too and no difference) Probably related to https://github.com/mapbox/mapbox-gl-js/issues/4670 I tried to keep only 1 layer, 1 marker and remove any elements from popup except 'paragraph' and map works smooth and fast but popup still has lag

Expected Behavior

no popup lags on animations like flyTo and map move

Actual Behavior

lags

Greetings!

mateusz-kawka avatar Dec 05 '23 14:12 mateusz-kawka

Hmm, yeah, weird — I can confirm that popup is lagging compared to marker, even though internally their position is updated with the same mechanism. Will investigate.

mourner avatar Dec 06 '23 10:12 mourner

Currently 3.4.0 but unfortunately see no differences ;/

mateusz-kawka avatar Jul 16 '24 12:07 mateusz-kawka