2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00
koreader/frontend
NiLuJe 841e67e018 Input: Make sure GestureDetector:feedEvent will actually consume all
slots

This ensures we won't leave *any* slot in an undefined state because
we skipped parsing 'em because what we consumed first yielded a
gesture.

(In particular, this could leave a few slots dangling in the "hold"
state in corner cases involving spider-hand finger tapping ;p).

Cleans up the slot state clearing in GestureDetector to only clear the
necessary slots (e.g., two-finger gestures now only clear their own two
slots; and holds only clear their own slot).
The fact that every slot will be consumed ensures that every slot will
naturally get their contact up handled, which wasn't the case before,
hence those crappy workarounds.

As far as timerfd callbacks are concerned, this *does* introduce the
possibility of deadline collisions, so, do reimplement minimal safety
checks to ensure we run (and free) the right timerfd callback.
2022-08-16 18:09:46 +02:00
..
apps Highlight: add note marker (#9395) 2022-08-03 09:51:57 -04:00
device Input: Make sure GestureDetector:feedEvent will actually consume all 2022-08-16 18:09:46 +02:00
document CanvasContext.hasEinkScreen(): avoid crash on Android (#9417) 2022-08-08 11:42:56 +02:00
ui ScreenSaver: On race-y platforms, only force a refresh on close if the 2022-08-16 18:09:46 +02:00
cache.lua
cacheitem.lua
configurable.lua
dbg.lua Minor Lua I/O cleanups (#8921) 2022-03-19 23:57:31 +01:00
depgraph.lua
device.lua
dispatcher.lua Screensaver: add option to require a gesture after resume (#9316) 2022-07-11 13:50:28 +02:00
docsettings.lua
dump.lua Make luacheck >= 0.26 happy (#9174) 2022-06-11 19:06:06 +02:00
fontlist.lua Keyboard: add Bengali Probhat layout (#8887) 2022-03-15 23:13:13 +01:00
gettext.lua Make luacheck >= 0.26 happy (#9174) 2022-06-11 19:06:06 +02:00
httpclient.lua
languagesupport.lua
logger.lua
luadata.lua
luasettings.lua
luxl.lua
optmath.lua
persist.lua
pluginloader.lua remove send2ebook plugin (#8747) 2022-01-30 22:01:51 +01:00
pluginshare.lua
random.lua
readcollection.lua
readhistory.lua Book Shortcuts: allow recursively searching folders 2022-03-24 22:49:34 -04:00
socketutil.lua
userpatch.lua userpatch: allow monkey-patching KOReader (#9104) 2022-06-25 22:46:43 +02:00
util.lua Autoturn: change to minutes and seconds (#9055) 2022-06-01 00:04:46 +02:00
version.lua