From 33b5af5c858357ee5336484b3a5a975aa256d90d Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 23 Nov 2015 14:00:25 -0500 Subject: [PATCH] Don't update urlhash while in intro This should cut down on the errant edits in Three Rivers, MI. Users getting stuck in walkthrough are probably refreshing their browser and returning to the location in the walkthrough where they got stuck. --- app/views/site/id.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/site/id.html.erb b/app/views/site/id.html.erb index 075e70b74..80332e887 100644 --- a/app/views/site/id.html.erb +++ b/app/views/site/id.html.erb @@ -36,6 +36,7 @@ }); id.map().on('move.embed', parent.$.throttle(250, function() { + if (id.inIntro()) return; var zoom = ~~id.map().zoom(), center = id.map().center(), llz = { lon: center[0], lat: center[1], zoom: zoom }; -- 2.39.5