I’m on corona 2017.3068
This is an odd one but I noticed since I got my new phone (iPhone 7)… my game had a second long delay in registering touches on the far left side of my screen. I thought this was a bug with my code and troubleshooted quite a bit yesterday. Eventually I removed all my code within my touch function and just logged e.phase…
what I noticed was after pressing on the far left side of the screen my touches would not register for a full second. I tried turning off 3d touch and then the game was perfectly responsive. no delay anymore.
https://www.youtube.com/watch?v=ZRsgO-ViWiw
here is the code… I emptied the body of this function and still had the delay when logging to the console.
function screenTouched(e) if not inputEnabled then do return end end local left = (e.x \< display.contentWidth/2) and true or false -- GAMEPAD if control == "gamepad" then if left then gamepad.touchID = e.id if e.phase == "began" or e.phase == "moved" then gamepad:move(e) elseif e.phase == "ended" then gamepad:stop() end else if gamepad.touchID == e.id then gamepad:stop() else gamepad:jump(e) jumpTouch(e) end end -- JOYSTICK else if e.phase == "began" and left then joystick.touchID = e.id end if joystick.touchID == e.id then joystickTouch(e) else jumpTouch(e) end end end
it was hard to aim my finger the way i was filming.