mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-01-05 09:40:02 -08:00
Add comment about contrast adjustment 'a la DS9'
This commit is contained in:
@@ -734,6 +734,7 @@ export let View = (function() {
|
||||
var xymouse = view.imageCanvas.relMouseCoords(e);
|
||||
|
||||
if (view.rightClick && view.lastFitsSurvey) {
|
||||
// we try to match DS9 contrast adjustment behaviour with right click
|
||||
const cx = (xymouse.x - view.rightclickx) / view.reticleCanvas.clientWidth;
|
||||
const cy = -(xymouse.y - view.rightclicky) / view.reticleCanvas.clientHeight;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user