From: Damyan Ivanov Date: Thu, 4 Feb 2021 20:28:01 +0000 (+0200) Subject: quicker reaction to the scroll when considering fab sliding X-Git-Tag: v0.17.0~163 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=0de6f8a521ec0cca27d3279c631e8c617c5d716a;p=mobile-ledger.git quicker reaction to the scroll when considering fab sliding --- 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;