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

在启用长按手势操作时无法禁用滑动手势 #1416

Open
developer-poplar opened this issue Dec 1, 2023 · 1 comment
Open

在启用长按手势操作时无法禁用滑动手势 #1416

developer-poplar opened this issue Dec 1, 2023 · 1 comment

Comments

@developer-poplar
Copy link

我使用gestureControl.longPressed实现长按操作,但是在长按过程中滑动手势也是可以触发的,是尝试使用了disableGestureTypes和ControlView中的customDisablePanMovingDirection都无法禁用滑动。我目前需要在ZFLongPressGestureRecognizerStateBegan时禁用滑动,在ZFLongPressGestureRecognizerStateEnded是开启滑动,请问需要如何设置

@developer-poplar
Copy link
Author

我在ZFPlayerGestureControl中添加了自定义属性通过gestureRecognizerShouldBegin来临时解决了此问题,不过希望作者能给出更好的解决方案

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

1 participant