Visualizer: Handle mouse button event