add threshold in drag