mapbox/mapbox-gl-leaflet

Map panning broken in mapbox-gl 2.5

agusterodin opened this issue · 5 comments

I am experiencing insane map panning jitter that renders map unusable in mapbox-gl 2.5. I have tested with mapbox-gl 2.4.1 (latest 2.4 patch release) and it works fine. The bug was introduced with mapbox-gl 2.5.

Screen.Recording.2021-10-16.at.4.13.43.PM.mov

Thanks for the awesome library btw, much appreciated.

Same bug with mapbox-gl version 1.15.2

I'm having a tricky time determining exactly how it results in the issue, but can confirm that these are the lines, the removal of which is responsible for the issue:

https://github.com/mapbox/mapbox-gl-js/pull/11084/files#diff-674b3f5df7dce0a867437ddbfcf8b0b6d08546903d4b19f70273e55a8ff2114eL347-L351

It should be implementing this blur on the individual handlers so that desktop interactions are blurred while touch interactions are not, but I wonder if the decision of which handlers on which to implement custom blur handlers is not quite right—in addition to the bigger question of why it's the blur handler that ultimately causes the issue.

Hi @rreusser, I just found this issue here because I ran into the same problem. Would it be possible to implement a workaround for this issue in mapbox-gl-leaflet?- Or this is need to be changed in mapbox-gl-js?

Can confirm this fix is working:
#155

fixed by @denisones in v.0.0.16