sharpie7 / circuitjs1

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

mouse drag is not working in this particular circuit for some reason #748

Closed ericfont closed 2 years ago

ericfont commented 2 years ago

With the attached circuit (with-diode-output-led-prtoection_circuit-20220331-0020.circuitjs.txt) I am unable to easily drag to select an area with my mouse. I can drag individual elements. But when I try to select an area, for some reason one of the corners of the rectangle is fixed to be the top center of the screen. Also clicking with the mouse in the menu doesn't seem to do any thing. I have to reload circuitjs and start with a fresh or other circuit to use my mouse again.

ericfont commented 2 years ago

there is also a undocked scope to the lower right of the red LED on the right. But for some reason that undocked scope is not visible but I know it is there cause if I move the cursor over it, I can see the cursor on the scope.

I don't know exaclty how I managed to get this circuit in this corrupted(?) state...My previous save of an earlier version of the circuit (before I made some changes and added an LED), seems to work just fine.

pfalstad commented 2 years ago

I just fixed a few bugs related to undocked scopes, but they haven't been released yet. Deleting an undocked scope would leave an invisible scope lying around, like this. Also when creating an undocked scope, it wouldn't work until you resized it.

ArmoredRodent commented 2 years ago

The file breaks the simulator. Nothing works. None of the menus do anything.

Paul is correct. The circuit shows 4 undocked scopes. The text file has 6 undocked scopes (Code 403).

I deleted all and the circuit works. A bit of trial and error will fix your problem.

pfalstad commented 2 years ago

this is fixed in the latest version.