mirror of
https://github.com/trebonian/visual6502.git
synced 2025-01-18 05:33:57 +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){
|
||||
var xmid=(xmin+xmax)/2;
|
||||
var ymid=(ymin+ymax)/2;
|
||||
var x=xmid/grChipSize*600;
|
||||
var x=(xmid+400)/grChipSize*600;
|
||||
var y=600-ymid/grChipSize*600;
|
||||
var zoom=5; // pending a more careful calculation
|
||||
moveHere([x,y,zoom]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user