KatrinaHoffert / EatSafe

An app for finding safe places to eat
Other
2 stars 2 forks source link

Choosing move to me before allowing GeoLocation for nearby locations stops nearby locs from working #129

Closed KatrinaHoffert closed 9 years ago

KatrinaHoffert commented 9 years ago

To reproduce (in Firefox -- not sure if it affects Chrome):

  1. Load the multi-map for any city.
  2. Ignore the initial request for GeoLocation.
  3. Click "move to me" and accept that request for GeoLocation (note that it's a different request, yet only one request happens per page).
  4. The nearby locations will now be stuck loading and will never be able to get your position.

Fix: cancel request if the "move to me" button is pressed, and restart the request.

KatrinaHoffert commented 9 years ago

This seems to be a Firefox bug and not a problem with our app. Nothing that can be done about this. Fortunately, it's only an issue on Firefox for desktop. Android Firefox works like Chrome.