将滚动动画
UIView.animate(withDuration: 0.1) {
scrollView.contentOffset.x += moveX
}
改成
UIView.animate(withDuration: 0.1, delay: 0, options: [.allowUserInteraction], animations: {
scrollView.contentOffset.x += moveX
})
将滚动动画
UIView.animate(withDuration: 0.1) {
scrollView.contentOffset.x += moveX
}
改成
UIView.animate(withDuration: 0.1, delay: 0, options: [.allowUserInteraction], animations: {
scrollView.contentOffset.x += moveX
})