Fixes https://github.com/vultisig/vultisig-android/issues/265#issuecomment-2178010949
This PR introduces an enhancement to the debounce click handling mechanism in our application. Previously, the cooldown period was not shared between different views, which could lead to inconsistent behavior when rapidly switching between views and clicking on different elements.
Changes include:
Refactoring the clickOnce function in Onclick.kt to ensure that the cooldown period is shared across all views. This prevents rapid, successive clicks from being registered in different views during the cooldown period.
Adjusting the COOL_DOWN_PERIOD constant to fine-tune the length of the cooldown period based on user interaction testing.
This change improves the user experience by ensuring consistent click handling across the application, regardless of how quickly a user may switch between views or click on different elements.
Fixes https://github.com/vultisig/vultisig-android/issues/265#issuecomment-2178010949 This PR introduces an enhancement to the debounce click handling mechanism in our application. Previously, the cooldown period was not shared between different views, which could lead to inconsistent behavior when rapidly switching between views and clicking on different elements.
Changes include: