mirror of
https://github.com/trebonian/visual6502.git
synced 2024-09-27 14:59:46 +00:00
Fix Shift Click which broke in performance improvement changes
This commit is contained in:
parent
c04f37a3df
commit
4f7930eef3
@ -384,7 +384,10 @@ function handleClick(e){
|
|||||||
}
|
}
|
||||||
// we have a node, but maybe we clicked over a transistor
|
// we have a node, but maybe we clicked over a transistor
|
||||||
var nodelist=[w];
|
var nodelist=[w];
|
||||||
if(e.shiftKey) nodelist=getNodeGroup(w);
|
if(e.shiftKey) {
|
||||||
|
getNodeGroup(w);
|
||||||
|
nodelist = group;
|
||||||
|
}
|
||||||
// match the coordinate against transistor gate bounding boxes
|
// match the coordinate against transistor gate bounding boxes
|
||||||
x=cx-400;
|
x=cx-400;
|
||||||
y=grChipSize-cy;
|
y=grChipSize-cy;
|
||||||
|
@ -169,7 +169,10 @@ function handleClick(e){
|
|||||||
var x = localx(hilite, e.clientX)/zoom;
|
var x = localx(hilite, e.clientX)/zoom;
|
||||||
var y = localy(hilite, e.clientY)/zoom;
|
var y = localy(hilite, e.clientY)/zoom;
|
||||||
var w = findNodeNumber(x,y);
|
var w = findNodeNumber(x,y);
|
||||||
if(e.shiftKey) hiliteNode(getNodeGroup(w));
|
if(e.shiftKey) {
|
||||||
|
getNodeGroup(w);
|
||||||
|
hiliteNode(group);
|
||||||
|
}
|
||||||
else {var a=new Array(); a.push(w); hiliteNode(a);}
|
else {var a=new Array(); a.push(w); hiliteNode(a);}
|
||||||
var cx = Math.round(x*grChipSize/600);
|
var cx = Math.round(x*grChipSize/600);
|
||||||
var cy = Math.round(y*grChipSize/600);
|
var cy = Math.round(y*grChipSize/600);
|
||||||
|
Loading…
Reference in New Issue
Block a user