Merge pull request #1959 from Bnyro/master

fix unresponsive controls
This commit is contained in:
Bnyro 2022-11-21 15:10:23 +01:00 committed by GitHub
commit 6c97598ac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ abstract class DoubleTapListener : View.OnClickListener {
}
private fun recentDoubleClick(): Boolean {
return elapsedTime() - lastDoubleClick < MAX_TIME_DIFF
return elapsedTime() - lastDoubleClick < MAX_TIME_DIFF / 2
}
fun elapsedTime() = SystemClock.elapsedRealtime()