ReaderHighlight: fix long-long-press regression

This commit is contained in:
poire-z
2021-05-20 23:04:59 +02:00
parent 26750dab99
commit 7dea979ef4

View File

@@ -1155,7 +1155,7 @@ end
function ReaderHighlight:onHoldRelease()
local long_final_hold = false
if self.hold_last_tv then
local hold_duration = UIManager:getTime() - self.hold_last_tv
local hold_duration = TimeVal:now() - self.hold_last_tv
if hold_duration > TimeVal:new{ sec = 3, usec = 0 } then
-- We stayed 3 seconds before release without updating selection
long_final_hold = true