click handling on drag