The circuit is consists of two Nand gates (74HC00 IC) forming a SR flip flop.
Whenever the toggle switches to the A side the output logic gets ‘HIGH’. And, as you can see on the scope, the logic is shifting with a slight curve rather than bouncing.
The resistors used in the circuit are pull-up resistors.
Whenever, the switch is moving between the contacts to create the bounce, the flip flop maintains the output because the ‘0’ is fed back from the output of the Nand gates.
Enjoy...😎