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

浏览图片单击事件自定义 #649

Closed
liumengdi666 opened this issue Apr 7, 2024 · 5 comments · Fixed by #650 or #651
Closed

浏览图片单击事件自定义 #649

liumengdi666 opened this issue Apr 7, 2024 · 5 comments · Fixed by #650 or #651

Comments

@liumengdi666
Copy link

找了一下只看到可以自定义长按事件,longPressHandler,有没有api可以自定义单击事件或者禁用它?
WeChatae7ef9a49f323c015017b88610aea5ee

SilenceLove added a commit that referenced this issue Apr 8, 2024
@SilenceLove SilenceLove linked a pull request Apr 8, 2024 that will close this issue
@liumengdi666
Copy link
Author

So cool ~

如果外部可以控制下边这段逻辑就更好了:
image
实际上因为外部拿不到didHidden的状态和gradualShadowImageView私有变量.

@SilenceLove
Copy link
Owner

不拦截点击事件就可以了吧

SilenceLove added a commit that referenced this issue Apr 9, 2024
@SilenceLove
Copy link
Owner

最新代码暴露了

So cool ~

如果外部可以控制下边这段逻辑就更好了: image 实际上因为外部拿不到didHidden的状态和gradualShadowImageView私有变量.

@liumengdi666
Copy link
Author

pickerController.pickerDelegate?.pickerController(
            pickerController,
            previewSingleClick: cell.photoAsset,
            atIndex: currentPreviewIndex
        )

这个方法连调了2次导致单击回调走了2次
PhotoPreviewViewController+CollectionView文件的178和232行

SilenceLove added a commit that referenced this issue Apr 10, 2024
@SilenceLove SilenceLove linked a pull request Apr 10, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants