Skip to content

Fix not setting tab selectedButton on swipe (scroll) gesture#584

Merged
msaps merged 2 commits intouias:mainfrom
NeoCortext:fix/swipe-tab-selection-fix
Jan 15, 2022
Merged

Fix not setting tab selectedButton on swipe (scroll) gesture#584
msaps merged 2 commits intouias:mainfrom
NeoCortext:fix/swipe-tab-selection-fix

Conversation

@nikitapankiv
Copy link
Copy Markdown
Contributor

Description
Due to progress nature of swipe scroll and animation of it, Tabman lacks saving selectedButton in TMBarView, which was set by swipe gesture.

I also could have used check on TMBarButton.SelectionState.selected, but the value of progress never reaches 1, so I'm checking for specific e - 0.001.

STR:

  • Go to Home Tab
  • Swipe to the next tab
  • Tap the next tab

AR:

  • current and the previous tabs are highlighted

ER:

  • only the active tab is highlighted

If you have some suggestions/comments - feel free to contact us.

@nikitapankiv
Copy link
Copy Markdown
Contributor Author

@msaps plz have a look

@msaps
Copy link
Copy Markdown
Member

msaps commented Jan 15, 2022

Sorry for the delay - looks great thank you for fixing it! ❤️

@msaps msaps enabled auto-merge (squash) January 15, 2022 10:52
@msaps msaps disabled auto-merge January 15, 2022 10:53
@msaps msaps merged commit d20423a into uias:main Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants