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.
pull/1328/head
chrox 10 years ago
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…
Cancel
Save