LancelotP / satisfactory-map

MIT License
77 stars 19 forks source link

Make the map movement handler use history API's replace state if possible #26

Closed amoliski closed 5 years ago

amoliski commented 5 years ago

The history.replaceState function will update the browser's hash without adding a new entry to the history list. Before: Browse to the map page, zoom/scroll the map ten times. Click the back button ten times to leave the map. After: Browse to the map page, zoom/scroll the map ten times. Click the back button once to leave the map.

LancelotP commented 5 years ago

Nice work on this one. I'll merge and add the same piece of code onto filter hash as well once merged