Closed alexhorn closed 6 months ago
Maybe I missed something, but isn't the inner component just renamed and moved to a different part of the file? I had issues in the past to reproduce this bug on Android/Windows. Just a note of caution, not that the bug still exists.
It took me a while to understand why the bug was happening myself. Because Recenter
was declared inside RoomMap
it was recreated every time RoomMap
was rerendered, which happens every time there is a position update from the Geolocation API. Moving it outside the RoomMap
component seems to fix that.
@alexhorn Okay wow🫠
Currently, the map view position jumps back to the center every time the map is rerendered. This can be reproduced by panning to a different location and then changing the location using the developer tools.