enables/disables torque when the layer is shown/hidden