YBImageBrowser
YBImageBrowser copied to clipboard
视频手势返回跳动问题
Description
Environment
- YBImageBrowser version:应该是3.1.2
- iOS version:14
- 播放视频的时候手势返回没有按照原路径返回,手势结束跳到左上角在移动到源资源位置
诶 我也出现这个问题了 模拟器上把拖拽手势代码禁止即可解决,但是在真机上依然有这个问题的存在,好像真机和模拟器代码没有统一一样
可能api不同步
---原始邮件--- 发件人: "吴赖子"<[email protected]> 发送时间: 2021年1月9日(周六) 下午2:32 收件人: "indulgeIn/YBImageBrowser"<[email protected]>; 抄送: "kukuBin"<[email protected]>;"Author"<[email protected]>; 主题: Re: [indulgeIn/YBImageBrowser] 视频手势返回跳动问题 (#325)
诶 我也出现这个问题了 模拟器上把拖拽手势代码禁止即可解决,但是在真机上依然有这个问题的存在,好像真机和模拟器代码没有统一一样
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
可能api不同步 … ---原始邮件--- 发件人: "吴赖子"<[email protected]> 发送时间: 2021年1月9日(周六) 下午2:32 收件人: "indulgeIn/YBImageBrowser"<[email protected]>; 抄送: "kukuBin"<[email protected]>;"Author"<[email protected]>; 主题: Re: [indulgeIn/YBImageBrowser] 视频手势返回跳动问题 (#325) 诶 我也出现这个问题了 模拟器上把拖拽手势代码禁止即可解决,但是在真机上依然有这个问题的存在,好像真机和模拟器代码没有统一一样 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
什么叫不同步?这个怎么解决 我看好在这个依赖的提交版本描述上写着 修复边界回弹的BUG了 但是我用的是一个三方包 基于这个依赖的 我不知道怎么改成最新的
是YBIBVideoCell中layoutSubviews引起的,把设置frame放在initWithFrame:可以解决这个问题
- (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self initValue]; [self.contentView addSubview:self.videoView]; self.videoView.frame = self.bounds; [self addGesture]; } return self; }
//- (void)layoutSubviews { // [super layoutSubviews]; // self.videoView.frame = self.bounds; //}