mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
disable double tap detection by default in gesture detector
since the gesture detector will block the main thread (the only thread in the lua part) for 300 ms on each tap waiting for the arrival of the second tap, it makes the whole application less responsive. 300 ms of latency is well perceived in this case. This patch will simply disable double tap detection by default as no widget now handles double_tap gestures. We could temporarily enable double tap detection when this gesture is indeed needed after.
This commit is contained in:
@@ -48,6 +48,8 @@ DKOPTREADER_CONFIG_DOC_LANGS_TEXT = {"English", "Chinese_S", "Chinese_T"}
|
||||
DKOPTREADER_CONFIG_DOC_LANGS_CODE = {"eng", "chi_sim", "chi_tra"} -- ISO 639-3 language string,
|
||||
DKOPTREADER_CONFIG_DOC_DEFAULT_LANG_CODE = "eng" -- and make sure you have corresponding training data
|
||||
|
||||
-- gesture detector defaults
|
||||
DGESDETECT_DISABLE_DOUBLE_TAP = true
|
||||
|
||||
-- ####################################################################
|
||||
-- following features are not supported right now
|
||||
|
||||
Reference in New Issue
Block a user