mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix #1275
Full refresh when highlighting text is quite annoying, I fixed it by using 'ui' refresh type. And this patch also fixed a bug that after cleaning temporary highlights the screen is not refreshed.
This commit is contained in:
@@ -123,6 +123,7 @@ function ReaderHighlight:clear()
|
||||
if self.hold_pos then
|
||||
self.hold_pos = nil
|
||||
self.selected_text = nil
|
||||
UIManager:setDirty(self.dialog, "partial")
|
||||
return true
|
||||
end
|
||||
end
|
||||
@@ -278,7 +279,7 @@ function ReaderHighlight:onHoldPan(arg, ges)
|
||||
self.selected_word = nil
|
||||
end
|
||||
end
|
||||
UIManager:setDirty(self.dialog, "partial")
|
||||
UIManager:setDirty(self.dialog, "ui")
|
||||
end
|
||||
|
||||
function ReaderHighlight:lookup(selected_word)
|
||||
|
||||
Reference in New Issue
Block a user