nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit 94072752e508efd83cb51ab2c106dfc0ada2536e
parent 172fdac6f4ef267870272f21f20e1f11c10f2685
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Tue,  7 Feb 2017 11:04:44 +0300

[hash state] set url hash via location.hash instead of location.replace to avoid mouse cursor flicker in chrome

Diffstat:
Msrc/lib/leaflet.hashState/leaflet.hashState.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/leaflet.hashState/leaflet.hashState.js b/src/lib/leaflet.hashState/leaflet.hashState.js @@ -31,7 +31,8 @@ L.Mixin.HashState = { if (this._ignoreStateChange) { return; } - hashState.updateState(this._hashStateKey, this.serializeState()); + const state = this.serializeState(); + hashState.updateState(this._hashStateKey, state); }, _onExternalStateChanged: function(state) {