Skip to content

Commit

Permalink
Only scroll side up at pin update if needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Jan 24, 2025
1 parent fce296e commit cb3a375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/cobrands/fixmystreet/fixmystreet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ fixmystreet.update_pin = function(lonlat, savePushState) {

fixmystreet.fetch_reporting_data();

if (!$('#side-form-error').is(':visible')) {
if (!$('#side-form-error').is(':visible') && !$('#side-form').is(':visible')) {
$('#side-form').show();
$('#map_sidebar').scrollTop(0);
}
Expand Down

0 comments on commit cb3a375

Please sign in to comment.