reduce +/- zooming factor

This commit is contained in:
bmatthieu3
2025-03-19 11:25:20 +01:00
committed by Matthieu Baumann
parent b2bb7df6e3
commit 749d963029
2 changed files with 7 additions and 7 deletions

View File

@@ -1964,11 +1964,11 @@ export let Aladin = (function () {
// @api
Aladin.prototype.increaseZoom = function () {
this.view.increaseZoom(0.01);
this.view.increaseZoom();
};
Aladin.prototype.decreaseZoom = function () {
this.view.decreaseZoom(0.01);
this.view.decreaseZoom();
};
/**

View File

@@ -603,7 +603,7 @@ export let View = (function () {
if(view.aladin.contextMenu) {
e.stopPropagation();
}
}, false);
});
let cutMinInit = null
@@ -1584,15 +1584,15 @@ export let View = (function () {
View.prototype.increaseZoom = function () {
this.zoom.apply({
stop: this.fov / 3,
duration: 300
stop: this.fov / 1.4,
duration: 100
});
}
View.prototype.decreaseZoom = function () {
this.zoom.apply({
stop: this.fov * 3,
duration: 300
stop: this.fov * 1.4,
duration: 100
});
}