Describe the issue
In the Optics experiment, if you change the e.g. rotation or position of a mirror or some other component, the light rays only update their path once the mouse cursor is moved out of the UI panel. I am not sure if this is intended behaviour, but it might be a bit confusing for most users, so I would suggest to fix this. I.e. the rays should update immediately once the light or optical components are rotated/repositioned
See also comment here: #589 (review)