Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pan手势的问题 #44

Open
myDonghao opened this issue Apr 27, 2022 · 1 comment
Open

pan手势的问题 #44

myDonghao opened this issue Apr 27, 2022 · 1 comment

Comments

@myDonghao
Copy link

我在左侧测滑页面上放了一个tableView。
当我拖拽的手势在tableView上的时候,我是想侧滑的,结果y变了

@zezefamily
Copy link

//处理 popView 跟 列表的拖拽冲突
func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
print("1111111")
listDragChanged?(true)
}

func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) {
    print("222222")
    listDragChanged?(false)
}
    musicSelectView.listDragChanged = { [weak self] isDraging in
        guard let weakSelf = self else {return}
        weakSelf.popView?.dragStyle = isDraging ?.NO :.y_Positive
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants