fix touch event dispatching in Lua