How to generate a cancelled phase

using the following code i cant get a cancelled event phase

if i touch the object i get began, if i move i get moved, if i let go i get  ended.

what action would generate the cancelled phase

local bb = display.newCircle( 200, 100, 30 )       bb:addEventListener("touch", function(e)         if e.phase == "began" then           print("began")           display.getCurrentStage():setFocus( e.target )         end         if e.phase == "moved" and e.target.isFocus then           print("moved")         end         if e.phase == "ended" then           print("ended")           display.getCurrentStage():setFocus(nil)         end         if e.phase == "cancelled" then           print("cancelled")           display.getCurrentStage():setFocus(nil)         end       end)

What if you drag offscreen?  If I remember correctly from a post I read, that caused a cancelled event.  But I could be wrong.

I tried moving finger off object
got ended phase when released

If I remember correctly, a cancelled event is generated when an orientation change occurs while touching an object.

It also occurs if you’d do a four-finger swipe up or left/right on an iPad while an object is “active”.

jstrahan,

Did you see this from the other thread you posted in about the detecting if the user had moved off an object?  It is a note from Brent at Corona:

“cancelled” is not really an event that gets triggered by the user. It generally happens only if the OS itself cancels the process, i.e. something interrupts the process.

yes
thx forthe help

What if you drag offscreen?  If I remember correctly from a post I read, that caused a cancelled event.  But I could be wrong.

I tried moving finger off object
got ended phase when released

If I remember correctly, a cancelled event is generated when an orientation change occurs while touching an object.

It also occurs if you’d do a four-finger swipe up or left/right on an iPad while an object is “active”.

jstrahan,

Did you see this from the other thread you posted in about the detecting if the user had moved off an object?  It is a note from Brent at Corona:

“cancelled” is not really an event that gets triggered by the user. It generally happens only if the OS itself cancels the process, i.e. something interrupts the process.

yes
thx forthe help