Capture the touch of an object which is moving

How do I capture the touch of an object which is moving? 

I have set in motion an object and it is unlikely that the system detects the touch. What is this?

Most often one interacts with static objects. I had not realized, but the system trying to capture a touch on the move is something else.

Hi @fferraro67,

Is this a case where the object is moving, and that by the time the user touches it and releases, the object has moved outside of the touch point?

Brent

Yes, it is.  I was reading and the touch has to begin and end on the same object. 

I’m using this command: 

Insecto: addEventListener (“tap”, H1)

You may need to use event.phase. I think the solution comes around.

Hi again,

The “tap” listener doesn’t offer any phases. It merely looks that a screen touch began and ended at approximately the same place on the screen.

You should try using a touch listener and setting focus on the object, and checking the results based on that, if your object(s) are moving very quickly. If that doesn’t work, a more comprehensive approach might be considered, but one step at a time. :slight_smile:

Brent

Hi @fferraro67,

Is this a case where the object is moving, and that by the time the user touches it and releases, the object has moved outside of the touch point?

Brent

Yes, it is.  I was reading and the touch has to begin and end on the same object. 

I’m using this command: 

Insecto: addEventListener (“tap”, H1)

You may need to use event.phase. I think the solution comes around.

Hi again,

The “tap” listener doesn’t offer any phases. It merely looks that a screen touch began and ended at approximately the same place on the screen.

You should try using a touch listener and setting focus on the object, and checking the results based on that, if your object(s) are moving very quickly. If that doesn’t work, a more comprehensive approach might be considered, but one step at a time. :slight_smile:

Brent