Don't zoom when double clicking buttons

Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
This commit is contained in:
Maximilian Krög 2021-07-26 21:57:44 +02:00
parent 7ef1c5f838
commit ebb7ff9c42
No known key found for this signature in database
GPG Key ID: 3C00897BB53AAB9C

View File

@ -285,6 +285,9 @@ AJAX.registerOnload('table/gis_visualization.js', function () {
});
$(document).on('dblclick', '#placeholder', function (event) {
if (event.target.classList.contains('button')) {
return;
}
scale *= zoomFactor;
// zooming in keeping the position under mouse pointer unmoved.
var relCoords = getRelativeCoords(event);