Fix #8182 by adding a check for left mouse click.

This should fix it. @peterflynn can you double check?