I finally realize what was causing the click issues,so now it works with proximity flag.