mirror of
https://github.com/koreader/koreader.git
synced 2026-11-28 08:17:00 +00:00
fix(android): work around broken touchscreen reporting on Mobiscribe Wave (#15273)
Some Android devices (e.g., Mobiscribe Wave) incorrectly report ACONFIGURATION_TOUCHSCREEN_NOTOUCH despite having a functioning touchscreen. This prevents touch zone registration in the reader view, making documents unusable via touch. Check the new brokenTouchReport quirk from android-luajit-launcher as a fallback. (#12349)
This commit is contained in:
1 parent
051b6c29bd
commit
83f443ce4b
1 file changed
+1
@@ -266,6 +266,7 @@ function Device:init()
|
||||
-- check if we have a touchscreen
|
||||
if android.lib.AConfiguration_getTouchscreen(android.app.config)
|
||||
~= C.ACONFIGURATION_TOUCHSCREEN_NOTOUCH
|
||||
or android.prop.brokenTouchReport
|
||||
then
|
||||
self.isTouchDevice = yes
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user