mirror of
https://github.com/trebonian/visual6502.git
synced 2024-06-04 00:29:31 +00:00
bugfix: zoom-to-fit on found objects needed an x offset
This commit is contained in:
parent
cfb726d0e7
commit
21c7a8ca90
2
wires.js
2
wires.js
|
@ -188,7 +188,7 @@ function hiliteTrans(n){
|
||||||
function zoomToBox(xmin,xmax,ymin,ymax){
|
function zoomToBox(xmin,xmax,ymin,ymax){
|
||||||
var xmid=(xmin+xmax)/2;
|
var xmid=(xmin+xmax)/2;
|
||||||
var ymid=(ymin+ymax)/2;
|
var ymid=(ymin+ymax)/2;
|
||||||
var x=xmid/grChipSize*600;
|
var x=(xmid+400)/grChipSize*600;
|
||||||
var y=600-ymid/grChipSize*600;
|
var y=600-ymid/grChipSize*600;
|
||||||
var zoom=5; // pending a more careful calculation
|
var zoom=5; // pending a more careful calculation
|
||||||
moveHere([x,y,zoom]);
|
moveHere([x,y,zoom]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user