From: Bryan Housel Date: Mon, 23 Nov 2015 19:00:25 +0000 (-0500) Subject: Don't update urlhash while in intro X-Git-Tag: live~3999 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/33b5af5c858357ee5336484b3a5a975aa256d90d?hp=c56bf5677ad21eb8bcfc2535f9a69636696fabab 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. --- 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 };