Haven't tested extensively, but from quick look at Google's docs and trial & error, changing the line (in the html):
map.addListener('center_changed', update_map);
to:
map.addListener('dragend', update_map);
seems to fix the problem.
Let me know if this does/doesn't fix this.