Fixed a bug in touch outside directive with mouse clicks.