mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-20 22:09:12 +00:00
Make the FAB scroll listener a less sensitive
This should help minimize the glitchiness that can occur when scrolling through the entry list. Close #963.
This commit is contained in:
parent
80624f844c
commit
e4798703f0
1 changed files with 2 additions and 2 deletions
|
@ -16,9 +16,9 @@ public class FabScrollHelper {
|
|||
}
|
||||
|
||||
public void onScroll(int dx, int dy) {
|
||||
if (dy > 0 && _fabMenu.getVisibility() == View.VISIBLE && !_isAnimating) {
|
||||
if (dy > 2 && _fabMenu.getVisibility() == View.VISIBLE && !_isAnimating) {
|
||||
setVisible(false);
|
||||
} else if (dy < 0 && _fabMenu.getVisibility() != View.VISIBLE && !_isAnimating) {
|
||||
} else if (dy < -2 && _fabMenu.getVisibility() != View.VISIBLE && !_isAnimating) {
|
||||
setVisible(true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue