From a3ee174d665b5185cb12c7ce59d4caa6cbe34bf3 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Fri, 27 Jan 2023 14:19:31 -0300 Subject: [PATCH] Fixing weird fab behavior on quickly jittering the main screen --- .../joinmastodon/android/fragments/BaseStatusListFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java index fab20a5f3..b28bfe6d3 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/BaseStatusListFragment.java @@ -286,6 +286,9 @@ public abstract class BaseStatusListFragment exten currentPhotoViewer.offsetView(-dx, -dy); if (fab!=null && GlobalUserPreferences.enableFabAutoHide) { + if(dy > 0){ + scrollDiff = 0; + } if (dy > 0 && fab.getVisibility() == View.VISIBLE) { TranslateAnimation animate = new TranslateAnimation( 0,