From 0de6f8a521ec0cca27d3279c631e8c617c5d716a Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 4 Feb 2021 22:28:01 +0200 Subject: [PATCH] quicker reaction to the scroll when considering fab sliding --- .../net/ktnx/mobileledger/ui/MobileLedgerListFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/MobileLedgerListFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/MobileLedgerListFragment.java index 74247189..a61f44f6 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/MobileLedgerListFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/MobileLedgerListFragment.java @@ -1,5 +1,5 @@ /* - * Copyright © 2020 Damyan Ivanov. + * Copyright © 2021 Damyan Ivanov. * This file is part of MoLe. * MoLe is free software: you can distribute it and/or modify it * under the term of the GNU General Public License as published by @@ -49,7 +49,7 @@ public class MobileLedgerListFragment extends Fragment { } protected void manageFabOnScroll() { final MainActivity mainActivity = getMainActivity(); - int triggerPixels = DimensionUtils.dp2px(mainActivity, 30f); + int triggerPixels = DimensionUtils.dp2px(mainActivity, 10f); root.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() { private float upAnchor = -1; private float lastY; -- 2.39.2