mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Back off on replacing the location to 1/5 of previous throttle
This commit is contained in:
@@ -29,7 +29,7 @@ iD.behavior.Hash = function(context) {
|
||||
var move = _.throttle(function() {
|
||||
var s1 = formatter(context.map());
|
||||
if (s0 !== s1) location.replace(s0 = s1); // don't recenter the map!
|
||||
}, 100);
|
||||
}, 500);
|
||||
|
||||
function hashchange() {
|
||||
if (location.hash === s0) return; // ignore spurious hashchange events
|
||||
|
||||
Reference in New Issue
Block a user