mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
UIManager:discardEvents(): use accurate "now"
Instead of UIManager possibly staled _now, which could have no effect after a long ReaderRolling re-rendering. Also lower the delay after such ReaderRolling re-rendering, so we can change settings quicker when comparing renderings.
This commit is contained in:
@@ -884,7 +884,9 @@ function ReaderRolling:onUpdatePos()
|
||||
self:updatePos()
|
||||
|
||||
Device:setIgnoreInput(false) -- Allow processing of events (on Android).
|
||||
UIManager:discardEvents(true) -- Discard events, which might have occured (double tap).
|
||||
UIManager:discardEvents(0.2) -- Discard events, which might have occurred (double tap).
|
||||
-- We can use a smaller duration than the default (quite large to avoid accidental dismissals),
|
||||
-- to allow for quicker setting changes and rendering comparisons.
|
||||
end
|
||||
|
||||
function ReaderRolling:updatePos()
|
||||
|
||||
Reference in New Issue
Block a user