Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay when closing a Popup #855

Closed
bogdancaspar opened this issue Jul 26, 2019 · 3 comments
Closed

Delay when closing a Popup #855

bogdancaspar opened this issue Jul 26, 2019 · 3 comments
Assignees
Labels

Comments

@bogdancaspar
Copy link

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?

@vincezun
Copy link

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

@Pessimistress Pessimistress self-assigned this Aug 1, 2019
@Pessimistress
Copy link
Collaborator

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.

@Pessimistress
Copy link
Collaborator

This should be fixed in 4.1.11/5.0.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants