Skip to content

Popup closes too quickly on some screens #394

@perfectly-preserved-pie

Description

@perfectly-preserved-pie

https://www.reddit.com/r/LARentals/comments/z4jhm3/i_made_an_interactive_map_of_la_county_rental/lvu6x69/

Among other reports. Seems to be affecting only macOS.

I believe it has something to do with the brittle resizing logic here:

// Bind the popup to the layer and set the max height and width based on the screen size
layer.bindPopup(
popupContent,
{
maxHeight: window.innerWidth < 768 ? 410 : 650,
maxWidth: window.innerWidth < 768 ? 175 : 300,
closeButton: false,
},
);

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions