]> git.openstreetmap.org Git - rails.git/commitdiff
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 075e70b740dd18c59835723ca31d856f476b103c..80332e887c8bff542657d294c9941f3cd4cc4547 100644 (file)
@@ -36,6 +36,7 @@
       });
 
     id.map().on('move.embed', parent.$.throttle(250, function() {
       });
 
     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 };
       var zoom = ~~id.map().zoom(),
         center = id.map().center(),
         llz = { lon: center[0], lat: center[1], zoom: zoom };