ReaderHighlight: fix long-long-press regression

reviewable/pr7730/r1
poire-z 3 years ago
parent 26750dab99
commit 7dea979ef4

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

Loading…
Cancel
Save