Don't zoom when double clicking buttons
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
This commit is contained in:
parent
7ef1c5f838
commit
ebb7ff9c42
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user