falling-fruit / falling-fruit-web

Mobile-friendly website for Falling Fruit
https://beta.fallingfruit.org
GNU General Public License v3.0
41 stars 26 forks source link

When map is panned, geolocation stops centering #568

Closed wbazant closed 1 week ago

wbazant commented 2 weeks ago

Closes #518

wbazant commented 1 week ago

@ezwelty thanks for reviewing and for suggesting the change! My original double click suggestion was to switch off then center, but center then switch off is still allowing both of them to happen, and I agree that it makes more sense - if the user loses interest in geolocation after panning they'll probably just ignore it, so if they're interacting with it they probably want to re-center.

The change was easy - the same code as for clicking the dot - so I'll just merge it in.