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 committed 2022-04-11 22:42:56 +02:00
1 parent 0808560532
commit 814f42cce0
2 files changed
+4 -2

No files matched your search

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