Skip to content

Commit

Permalink
make google maps less jumpy by disabling autopan
Browse files Browse the repository at this point in the history
Fixes #301 (in a less than ideal way -- see #301 for discussion)
  • Loading branch information
techieshark committed Dec 1, 2016
1 parent fad83fe commit 4dec958
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/geo/M.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ app.M = (function() {
// (see http://stackoverflow.com/a/4540249/1024811)
}
else {
gmapsInfowindow = new google.maps.InfoWindow();
gmapsInfowindow = new google.maps.InfoWindow({
disableAutoPan: true, // prevent jerky map panning (https://github.com/CodeforAustralia/school-finder/issues/301)
});
}

gmapsInfowindow.setContent(this.marker.popup);
Expand Down

0 comments on commit 4dec958

Please sign in to comment.