mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-12 07:40:26 -08:00
reduce +/- zooming factor
This commit is contained in:
committed by
Matthieu Baumann
parent
b2bb7df6e3
commit
749d963029
@@ -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();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user