mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +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:
parent
b767394fc2
commit
846836dceb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user