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

This commit is contained in:
Dobrica Pavlinusic
2012-03-04 19:40:22 +01:00
parent 0e3c91931d
commit 13ec6e42b5

View File

@@ -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