Merge pull request #633 from chrox/master

fix two finger pan gestures detection
pull/636/head v2014.06.08-nightly
Qingping Hou 10 years ago
commit 43350499f8

@ -1 +1 @@
Subproject commit faf756f04de275994fbcabe2400e4c585cd3f6ae
Subproject commit 5bd850e1e57d4ceb1b867f3bc38a31a8795a9fe9

@ -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

@ -1 +1 @@
Subproject commit 0047fa7aa34f686641abfa3db7e11217d2315137
Subproject commit 2b38b16d2795a228b1a541fbc2e09bd093119aad
Loading…
Cancel
Save