mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix crash on special offered Kindle
This commit is contained in:
@@ -226,7 +226,7 @@ function KindleTouch:exit()
|
||||
if isSpecialOffers() then
|
||||
-- fake a touch event
|
||||
if self.touch_dev then
|
||||
local width, height = Screen:getScreenWidth(), Screen:getScreenHeight()
|
||||
local width, height = self.screen:getScreenWidth(), self.screen:getScreenHeight()
|
||||
require("ffi/input").fakeTapInput(self.touch_dev,
|
||||
math.min(width, height)/2,
|
||||
math.max(width, height)-30
|
||||
|
||||
Reference in New Issue
Block a user