React-map-gl: Delay when closing a Popup

Created on 26 Jul 2019  路  3Comments  路  Source: visgl/react-map-gl

Hi guys,

I've encountered this many times, in multiple projects that I've used react-map-gl and I saw that this also happens on the official example: https://uber.github.io/react-map-gl/#/Examples/markers-popups

Everytime I want to close a popup, I press the close button and there is a delay of approximately 1 second. Any of you encountered this problem, and maybe solved it?

bug

Most helpful comment

This should be fixed in 4.1.11/5.0.8

All 3 comments

Yes, it has a delay but I dont know what's causing it.

This is a bug -- if you are curious, the delay is 300ms, as hammer.js waits to make sure you are not double clicking the button. We should close the popup immediately after any click event.

This should be fixed in 4.1.11/5.0.8

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomrussell picture tomrussell  路  5Comments

AriLFrankel picture AriLFrankel  路  3Comments

jenyeeiam picture jenyeeiam  路  4Comments

cjmyles picture cjmyles  路  3Comments

liang3404814 picture liang3404814  路  3Comments