From 255e81ce9f0c333827f1a2977a0ece8a83cc3071 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sun, 19 Apr 2020 10:45:26 +0200 Subject: Improve location history Before, script initiated moves would mess with the history through hash updates partway through the move. This commit fixes this behavior by checking for a human source. --- htdocs/streeteditor.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'htdocs/streeteditor.js') diff --git a/htdocs/streeteditor.js b/htdocs/streeteditor.js index 27addb5..a5e9e17 100644 --- a/htdocs/streeteditor.js +++ b/htdocs/streeteditor.js @@ -78,8 +78,6 @@ if (editor_mode) { document.getElementById('mapid').classList.add("no-aa"); mymap.setMaxZoom(14); mymap.off('click', onMapClick); - mymap.off('zoomend', update_hash_from_position); - mymap.off('dragend', update_hash_from_position); onLoad(); function get_location_string() { -- cgit v1.2.3