visualizer.rs: handle_event(..)