aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 1b0063f48..24597c225 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -157,7 +157,11 @@ fixmystreet.mobile_reporting = {
// and special "OK/Cancel" buttons etc.
$('html').addClass('map-fullscreen only-map map-reporting');
$('.mobile-map-banner span').text(translation_strings.place_pin_on_map);
- $('html, body').scrollTop(0);
+ // Do this on a timeout, so it takes precedence over the browser’s
+ // remembered position, which we do not want, we want a fixed map.
+ setTimeout(function() {
+ $('html, body').scrollTop(0);
+ }, 0);
},
remove_ui: function() {