]> git.openstreetmap.org Git - rails.git/commitdiff
Pass original event instad of leaflet event to changeset bbox click simulation
authorAnton Khorev <tony29@yandex.ru>
Wed, 16 Nov 2022 12:45:27 +0000 (15:45 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 16 Nov 2022 12:45:27 +0000 (15:45 +0300)
app/assets/javascripts/index/history.js

index 02b48f6a0ad618e8622ed896708851c179660109..e8d912685f0aae2b73808ed2b339947043838ccf 100644 (file)
@@ -20,7 +20,7 @@ OSM.History = function (map) {
       unHighlightChangeset(e.layer.id);
     })
     .on("click", function (e) {
       unHighlightChangeset(e.layer.id);
     })
     .on("click", function (e) {
-      clickChangeset(e.layer.id, e);
+      clickChangeset(e.layer.id, e.originalEvent);
     });
 
   group.getLayerId = function (layer) {
     });
 
   group.getLayerId = function (layer) {