Handle double click and right click.