From 356fd6edd57b1909b7f14445f87d95adcf0f0221 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Tue, 5 Feb 2013 17:59:26 -0500 Subject: [PATCH] Back off on replacing the location to 1/5 of previous throttle --- js/id/behavior/hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/behavior/hash.js b/js/id/behavior/hash.js index c8762fb13..ced648e45 100644 --- a/js/id/behavior/hash.js +++ b/js/id/behavior/hash.js @@ -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