fixes an issue with the wire tool tip catch radius; see #510

This commit is contained in:
hneemann 2020-11-03 21:41:01 +01:00
parent 27c20e6eec
commit afd3e737d9

View File

@ -591,7 +591,7 @@ public class CircuitComponent extends JComponent implements ChangedListener, Lib
}
}
Wire w = getCircuit().getWireAt(pos, SIZE2);
Wire w = getCircuit().getWireAt(pos, (int) (SIZE2 / transform.getScaleX()));
if (w != null) {
ObservableValue v = w.getValue();
if (v != null)