Don't update urlhash while in intro
authorBryan Housel <bryan@mapbox.com>
Mon, 23 Nov 2015 19:00:25 +0000 (14:00 -0500)
committerBryan Housel <bryan@mapbox.com>
Mon, 23 Nov 2015 19:00:25 +0000 (14:00 -0500)
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

index 075e70b..80332e8 100644 (file)
@@ -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 };