mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #633 from chrox/master
fix two finger pan gestures detection
This commit is contained in:
Submodule android/luajit-launcher updated: faf756f04d...5bd850e1e5
@@ -2,7 +2,7 @@ local DEBUG = require("dbg")
|
||||
-- lfs
|
||||
|
||||
local PluginLoader = {
|
||||
plugin_path = lfs.currentdir().."/plugins"
|
||||
plugin_path = "plugins"
|
||||
}
|
||||
|
||||
function PluginLoader:loadPlugins()
|
||||
|
||||
@@ -460,7 +460,7 @@ function GestureDetector:handleTwoFingerPan(tev)
|
||||
-- triggering slot
|
||||
local tslot = tev.slot
|
||||
-- reference slot
|
||||
local rslot = tslot and 0 or 1
|
||||
local rslot = tslot == 1 and 0 or 1
|
||||
local tpan_dir, tpan_dis = self:getPath(tslot)
|
||||
local tstart_pos = Geom:new{
|
||||
x = self.first_tevs[tslot].x,
|
||||
|
||||
@@ -116,6 +116,7 @@ end
|
||||
|
||||
-- transmit an event to registered widgets
|
||||
function UIManager:sendEvent(event)
|
||||
if #self._window_stack == 0 then return end
|
||||
-- top level widget has first access to the event
|
||||
if self._window_stack[#self._window_stack].widget:handleEvent(event) then
|
||||
return
|
||||
|
||||
Submodule koreader-base updated: 0047fa7aa3...2b38b16d27
Reference in New Issue
Block a user