mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
* GestureDetector: Downgrade probeClockSource log messages to debug We're seeing a bit more of 'em between autostandby and inhibitInput now, and the whole thing was implemented long enough ago that it's no longer critical to see this in random non-debug logs ;). * Input: Reset gesture state in inhibitInput Should prevent bogus gestures when re-enabling the handlers if we were called in the middle of gesture detection.
This commit is contained in:
@@ -1310,6 +1310,9 @@ function Input:inhibitInput(toggle)
|
||||
self._generic_ev_handler = self.handleGenericEv
|
||||
self.handleGenericEv = self.voidEv
|
||||
end
|
||||
|
||||
-- Reset gesture detection state to a blank slate, to avoid bogus gesture detection on restore.
|
||||
self:resetState()
|
||||
else
|
||||
-- Restore event handlers, if any
|
||||
if self._key_ev_handler then
|
||||
|
||||
Reference in New Issue
Block a user