moving to right column should take margin into account to provenet skipping columns #27

pull/2/merge
Dobrica Pavlinusic 12 years ago
parent 0e3c91931d
commit 13ec6e42b5

@ -498,8 +498,9 @@ function PDFReader:inputloop()
self.offset_y = self.min_offset_y
end
elseif ev.code == KEY_FW_RIGHT then
print("# FW RIGHT "..self.offset_x.." - "..x.." < "..self.min_offset_x);
self.offset_x = self.offset_x - x
if self.offset_x < self.min_offset_x then
if self.offset_x < self.min_offset_x - self.pan_margin then
self.offset_x = self.min_offset_x
if self.pan_by_page and self.pageno < self.doc:getPages() then
self.offset_x = self.pan_x

Loading…
Cancel
Save