mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[UX] Dict: scroll back with tap: go to bottom of prev definition (#3647)
This commit is contained in:
@@ -110,6 +110,14 @@ function ScrollTextWidget:scrollText(direction)
|
||||
end)
|
||||
end
|
||||
|
||||
function ScrollTextWidget:scrollToRatio(ratio)
|
||||
local low, high = self.text_widget:scrollToRatio(ratio)
|
||||
self.v_scroll_bar:set(low, high)
|
||||
UIManager:setDirty(self.dialog, function()
|
||||
return "partial", self.dimen
|
||||
end)
|
||||
end
|
||||
|
||||
function ScrollTextWidget:onScrollText(arg, ges)
|
||||
if ges.direction == "north" then
|
||||
self:scrollText(1)
|
||||
|
||||
Reference in New Issue
Block a user