mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
ReaderHighlight: fix long-long-press regression
This commit is contained in:
@@ -1155,7 +1155,7 @@ end
|
|||||||
function ReaderHighlight:onHoldRelease()
|
function ReaderHighlight:onHoldRelease()
|
||||||
local long_final_hold = false
|
local long_final_hold = false
|
||||||
if self.hold_last_tv then
|
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
|
if hold_duration > TimeVal:new{ sec = 3, usec = 0 } then
|
||||||
-- We stayed 3 seconds before release without updating selection
|
-- We stayed 3 seconds before release without updating selection
|
||||||
long_final_hold = true
|
long_final_hold = true
|
||||||
|
|||||||
Reference in New Issue
Block a user