mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix adjustGesCoordinate
This commit is contained in:
@@ -68,6 +68,8 @@ function Screen:refresh(refesh_type)
|
||||
self.fb.bb:blitFrom(self.bb, 0, 0, 0, 0, self.width, self.height)
|
||||
elseif self.native_rotation_mode == 0 and self.cur_rotation_mode == 1 then
|
||||
self.fb.bb:blitFromRotate(self.bb, 270)
|
||||
elseif self.native_rotation_mode == 1 and self.cur_rotation_mode == 0 then
|
||||
self.fb.bb:blitFromRotate(self.bb, 90)
|
||||
end
|
||||
self.fb:refresh(refesh_type)
|
||||
end
|
||||
@@ -139,7 +141,7 @@ function Screen:adjustGesCoordinate(ges)
|
||||
return ges
|
||||
end
|
||||
|
||||
if self.native_rotation_mode == 0 and self.cur_rotation_mode == 1 then
|
||||
if self.cur_rotation_mode == 1 then
|
||||
ges.pos.x, ges.pos.y = (self.width - ges.pos.y), (ges.pos.x)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user