Skip to content

fix: Show the FAB according to the user's preferences#29

Merged
nikclayton merged 1 commit intopachli:developfrom
nikclayton:15-hide-compose-button
Sep 11, 2023
Merged

fix: Show the FAB according to the user's preferences#29
nikclayton merged 1 commit intopachli:developfrom
nikclayton:15-hide-compose-button

Conversation

@nikclayton
Copy link
Copy Markdown
Contributor

The previous code didn't collect the uiState, so it was fixed at the default value, ignoring any changes that happened over the life of the viewmodel.

Fix that, so that the FAB will hide/show on scroll according to the user's preferences.

While I'm here simplify the show/hide logic. The previous code would ignore the user's preference if scrolling up. There doesn't seem to be a good reason for that, and spelunking 6+ years back through the history didn't find a justification for that behaviour in the original commit.

Fixes #15

The previous code didn't collect the uiState, so it was fixed at the
default value, ignoring any changes that happened over the life of
the viewmodel.

Fix that, so that the FAB will hide/show on scroll according to the
user's preferences.

While I'm here simplify the show/hide logic. The previous code would
ignore the user's preference if scrolling up. There doesn't seem to
be a good reason for that, and spelunking 6+ years back through the
history didn't find a justification for that behaviour in the original
commit.

Fixes pachli#15
@nikclayton nikclayton added the bug Something isn't working label Sep 11, 2023
@nikclayton nikclayton added this to the Launch 1.1 milestone Sep 11, 2023
@nikclayton nikclayton merged commit ec66942 into pachli:develop Sep 11, 2023
@nikclayton nikclayton deleted the 15-hide-compose-button branch September 11, 2023 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

"Hide compose button while scrolling" button is not always honoured

1 participant