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

IOS15,点击tab切换界面会卡住 #184

Closed
FukeYang opened this issue Oct 9, 2021 · 7 comments
Closed

IOS15,点击tab切换界面会卡住 #184

FukeYang opened this issue Oct 9, 2021 · 7 comments
Labels
question Further information is requested

Comments

@FukeYang
Copy link

FukeYang commented Oct 9, 2021

No description provided.

@FukeYang
Copy link
Author

FukeYang commented Oct 9, 2021

iphone12, iphone12pro会出现这个问题

@zhangyuge
Copy link

setContentOffset animated 为true时候卡顿
JXSegmentedView 574行修改如下
if contentScrollView != nil && (selectedType == .click || selectedType == .code) {
// contentScrollView!.setContentOffset(CGPoint(x: contentScrollView!.bounds.size.widthCGFloat(index), y: 0), animated: isContentScrollViewClickTransitionAnimationEnabled)
if isContentScrollViewClickTransitionAnimationEnabled {
UIView.animate(withDuration: 0.25) {
self.contentScrollView?.contentOffset = CGPoint(x: self.contentScrollView!.bounds.size.width
CGFloat(index), y: 0)
}
}else{
contentScrollView?.contentOffset = CGPoint(x: contentScrollView!.bounds.size.width*CGFloat(index), y: 0)
}
}

@BeingCode
Copy link

+1

@pujiaxin33
Copy link
Owner

如何复现呢?

@pujiaxin33 pujiaxin33 added the question Further information is requested label Nov 20, 2021
@zjinhu
Copy link

zjinhu commented Nov 22, 2021

在15.0.1 和 15.0.2 系统上频繁点击Segmentview就出现了

@ruins-hacker
Copy link

hello @pujiaxin33 这个有预期什么时候修复嘛...

@DNC-7
Copy link

DNC-7 commented Jun 16, 2022

w 574行修改如下
if contentScrollView != nil && (selectedType == .click || selectedType == .code) {
// contentScrollView!.setContentOffset(CGPoint(x: contentScrollView!.bounds.size.width_CGFloat(index), y: 0), animated: isContentScrollViewClickTransitionAnimationEnabled) if isContentScrollViewClickTransitionAnimationEnabled { UIView.animate(withDuration: 0.25) { self.contentScrollView?.contentOffset = CGPoint(x: self.contentScrollView!.bounds.size.width_CGFloat(index), y: 0)
}
}else{
contentScrollView?.contentOffset = CGPoint(x: contentScrollView!.bounds.size.width*CGFloat(index), y: 0)
}
}

请问这个是什么原理呢

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

No branches or pull requests

7 participants