Skip to content

Commit

Permalink
Merge branch 'Tevemadar:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Tevemadar authored Oct 17, 2024
2 parents 9c82fc5 + 133f569 commit 7c48361
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions filmstripzoom.html
Original file line number Diff line number Diff line change
Expand Up @@ -634,12 +634,12 @@
var trf=atlas.transformations[document.getElementById("traf").selectedIndex];
var xyz1=mult([[fx,fy,fz,1]],trf.matrix)[0];
div.innerText="(x="+xyz1[0].toPrecision(5)+" y="+xyz1[1].toPrecision(5)+" z="+xyz1[2].toPrecision(5)+")";
nx=Math.round(nx*overlaywidth);
ny=Math.round(ny*overlayheight);
var lx=Math.round(mx/cfg.Width*overlaywidth);
var ly=Math.round(my/cfg.Height*overlayheight);
var oldpop=pop;
pop=null;
if((nx>=0)&&(nx<overlaywidth)&&(ny>=0)&&(ny<overlayheight)){
pop=overlaydata[nx+ny*overlaywidth];
if((lx>=0)&&(lx<overlaywidth)&&(ly>=0)&&(ly<overlayheight)){
pop=overlaydata[lx+ly*overlaywidth];
pop=pop===0?null:atlas.labels[pop];
}
if(oldpop!==pop || jump)drawImage();
Expand Down

0 comments on commit 7c48361

Please sign in to comment.