fixed failure to properly handle left click