From a53ed49c92ce88e2cbfdcadfbec3cf039366bd8f Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Sun, 4 Mar 2018 19:34:35 +0100 Subject: [PATCH] set lastHash after calling setView --- leaflet-hash.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/leaflet-hash.js b/leaflet-hash.js index 70a1007..1e48789 100644 --- a/leaflet-hash.js +++ b/leaflet-hash.js @@ -103,7 +103,8 @@ this.movingMap = true; this.map.setView(parsed.center, parsed.zoom); - + this.lastHash = hash; + this.movingMap = false; } else { this.onMapMove(this.map);