projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c56bf56
)
Don't update urlhash while in intro
author
Bryan Housel
<bryan@mapbox.com>
Mon, 23 Nov 2015 19:00:25 +0000
(14:00 -0500)
committer
Bryan 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
patch
|
blob
|
history
diff --git
a/app/views/site/id.html.erb
b/app/views/site/id.html.erb
index 075e70b740dd18c59835723ca31d856f476b103c..80332e887c8bff542657d294c9941f3cd4cc4547 100644
(file)
--- 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 };