pfalstad / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
1.71k stars 286 forks source link

"Outputs and Lables / Box" Selection #89

Open jjdnd opened 5 months ago

jjdnd commented 5 months ago

is it possible to improve the "Outputs and Lables / Box" so be useful for enclosing parts of a circuit

if you put a box around your circuit, it is then not possible to drag select any of the components within the box as it drag selects the box instead.

example attached, please try and select both of the capacitors in the link below and move then without moving the box

selection of the box itself should only happen if the mouse is actual on the frame border itself NOT anywhere within the frame.

https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWcMBMcUHYMGZIA4UA2ATmIxAUgpABZsKBTAWjDACgAjEJww2kbIRoCwfSJxCEwxWmXB4ZovFDYBjEChTC0yzdowooUWPAhUYcdupR5d+DbY0GjF0y5PsgA

jjdnd commented 5 months ago

An after thought the "Outputs and Lables / Line" duplicated and modified to be "Outputs and Lables / Dashed Line" would probably be a good alternative. as then 4 lines would look exactly like the box but only select if the mouse was over the actual line.