fix dragDelay and add dragDistance