mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-17 08:55:05 -04:00
fixes an issue with the wire tool tip catch radius; see #510
This commit is contained in:
parent
27c20e6eec
commit
afd3e737d9
@ -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) {
|
if (w != null) {
|
||||||
ObservableValue v = w.getValue();
|
ObservableValue v = w.getValue();
|
||||||
if (v != null)
|
if (v != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user