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:
poire-z
2022-04-11 13:32:28 +02:00
parent 0808560532
commit 814f42cce0
2 changed files with 4 additions and 2 deletions

View File

@@ -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()