bug fix for always trigger double click

double click function ned to be modified to enable smooth usage