mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
match distance when gesturerange has scale field
This commit is contained in:
@@ -35,7 +35,8 @@ function GestureRange:match(gs)
|
||||
end
|
||||
end
|
||||
if self.scale then
|
||||
if self.scale[1] > gs.span or self.scale[2] < gs.span then
|
||||
local scale = gs.distance or gs.span
|
||||
if self.scale[1] > scale or self.scale[2] < scale then
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user