onEvent generates multiple events: a “began” phase and an “ended” phase. Your function that you’re calling has to test for either the touch down or touch up event and only fire once. That is:
local function CzatFunction(event) if event.phase == "ended" then gotoViewScene(); end return true end
Or simply don’t use onEvent, instead use onPress or onRelease instead.
Rob