]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/id.html.erb
Don't update urlhash while in intro
[rails.git] / app / views / site / id.html.erb
index 075e70b740dd18c59835723ca31d856f476b103c..80332e887c8bff542657d294c9941f3cd4cc4547 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 };