Fixing weird fab behavior on quickly jittering the main screen

This commit is contained in:
LucasGGamerM 2023-01-27 14:19:31 -03:00
parent 45832355a3
commit a3ee174d66
1 changed files with 3 additions and 0 deletions

View File

@ -286,6 +286,9 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> 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,