Commit 9cbe13ff by Michal Rentka

fixed tabbar line position when animating after scroll

parent 957dd4b4
...@@ -423,8 +423,8 @@ extension TabBar { ...@@ -423,8 +423,8 @@ extension TabBar {
return return
} }
s.line.center.x = button.center.x
s.line.width = button.width s.line.width = button.width
s.line.center.x = button.center.x
if !s.scrollView.bounds.contains(button.frame) { if !s.scrollView.bounds.contains(button.frame) {
let contentOffsetX = (button.x < s.scrollView.bounds.minX) ? button.x : button.frame.maxX - s.scrollView.bounds.width let contentOffsetX = (button.x < s.scrollView.bounds.minX) ? button.x : button.frame.maxX - s.scrollView.bounds.width
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment