resolve conflict between drag and scroll