-
Notifications
You must be signed in to change notification settings - Fork 2
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
topcenter Reverse scroll #1
Comments
@mukyasa Thanks for your comments.I'll be glad to do it.The the layout direction is vertical now.You want it horizontal?Right? |
I think so it already horizontal, but the scroll direction is reversed, means if i swipe left the collectionview scrolls to right and vice versa. |
Yeah.I got it.I will fix it in 20 minutes. |
😄Don't forget to star it if you like. |
Sure Bro, Thanks for quick response , |
Alright. if configuration.wheelType == .bottomCenter || configuration.wheelType == .topCenter {
invisibleCellCount = Double(collectionView.contentOffset.x/configuration.cellSize.width)
} else {
invisibleCellCount = Double(collectionView.contentOffset.y/configuration.cellSize.height)
} case .topCenter:
attributes.center = CGPoint(x: contentOffset.x+(viewSize.width)/2.0, y: (contentOffset.y)+cellSize.height/2)
case .bottomCenter,.topCenter:
visibleCellCount = CGFloat(180.0/configuration.angular+1.0)
contentSize = CGSize(width: (viewSize.width)+(CGFloat(cellCount)-visibleCellCount)*(configuration.cellSize.width)+CGFloat(configuration.contentHeigthPadding), height:viewSize.height) |
It was a vertical layout before.But it's horizontal now. |
Hello ParsifalC,
When i set wheeltype = topcenter the scroll is reverse scroll , can you help me to improve the scroll(Proper scroll)
The text was updated successfully, but these errors were encountered: