Fix swip and click event problem