diff --git a/crereader.lua b/crereader.lua index 6344b92ab..4a8b8c6df 100644 --- a/crereader.lua +++ b/crereader.lua @@ -108,7 +108,7 @@ function CREReader:goto(pos, is_ignore_jump, pos_type) if pos_type == "xpointer" then self.doc:gotoXPointer(pos) pos = self.doc:getCurrentPos() - else -- pos_type is PERCENT * 100 + else -- pos_type is position within document pos = math.min(pos, self.doc:getFullHeight() - height) pos = math.max(pos, 0) self.doc:gotoPos(pos)