mirror of
https://github.com/trebonian/visual6502.git
synced 2024-09-27 14:59:46 +00:00
[bug]tidy up pan+zoom URLs
This commit is contained in:
parent
bc8ef61fb9
commit
68e022a2bd
@ -346,7 +346,7 @@ function setupChipLayoutGraphics(){
|
|||||||
// utility function to save graphics pan and zoom
|
// utility function to save graphics pan and zoom
|
||||||
function whereAmIAsQuery(){
|
function whereAmIAsQuery(){
|
||||||
var w=whereAmI();
|
var w=whereAmI();
|
||||||
return "panx="+w[0]+"&pany="+w[1]+"&zoom="+w[2]
|
return "panx="+w[0].toFixed(1)+"&pany="+w[1].toFixed(1)+"&zoom="+w[2].toFixed(1);
|
||||||
}
|
}
|
||||||
function whereAmI(){
|
function whereAmI(){
|
||||||
return [centerx, centery, zoom];
|
return [centerx, centery, zoom];
|
||||||
|
Loading…
Reference in New Issue
Block a user