mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
disable panning in page view_mode (#4265)
This commit is contained in:
committed by
Frans de Jonge
parent
f9086a2ba9
commit
42a7dd4502
@@ -551,7 +551,7 @@ function ReaderRolling:onGotoViewRel(diff)
|
||||
end
|
||||
|
||||
function ReaderRolling:onPanning(args, _)
|
||||
--@TODO disable panning in page view_mode? 22.12 2012 (houqp)
|
||||
if self.view.view_mode ~= "scroll" then return end
|
||||
local _, dy = unpack(args)
|
||||
self:_gotoPos(self.current_pos + dy * self.panning_steps.normal)
|
||||
self.xpointer = self.ui.document:getXPointer()
|
||||
|
||||
Reference in New Issue
Block a user