Fix minor bug when orientation changes for mode sectionHorizontalContentVertical#114
Conversation
Fix bug when orientation changes for sectionHorizontalContentVertical.
|
Is it to fix #111? I tested but not fixed that. |
|
No, it fixes problem for the swipe/scroll mode. The Font menu bug is in every scrollDirection.
|
|
We have to do a lot of hacks because this new layout direction, because when I created this generic function I did not prevent your new layout. I think the best and less buggy what is to refactor this func: To support 3 layouts, so we don't need if else for this. Also I think we can rename the enum case |
|
You’re right. I will start with this now! |
refactoring & renaming isVerticalDirection to isDirection
| } else if let offset = isVerticalDirection(position["pageOffsetY"], position["pageOffsetX"]) as? CGFloat { | ||
| pageOffset = offset | ||
| } | ||
| let offset = isDirection(position["pageOffsetY"], position["pageOffsetX"], position["pageOffsetY"]) as? CGFloat |
There was a problem hiding this comment.
Saved many lines of code 💥
No description provided.