2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
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:
chrox 2014-12-03 14:06:43 +08:00
parent b767394fc2
commit 846836dceb

View File

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