touch v tap position detection?

Is there a difference between the ‘tap’ and ‘touch’ event position detection? (event.x, event.y)

The documentation says that for a tap, The position is in content coordinates of the tap.

And a touch, The position in screen coordinates of the touch.

Are these the same? One seems relative to the group, and the other absolute screen position.  

I ask because I wonder which one the button widget is using. It seems like my button is returning the value within the scrolling page (content coordinates of a tap), but I would like to popup a menu exactly where the button is pressed (screen coordinates of a touch).  If there is a difference, can I tell the button widget to act as a touch?

I haven’t been able to get anything but a content relative position.  

(so if I scroll down the list, then click a row, the popup is still shown much higher up…)

I’m pretty sure widget.newButton() uses “touch”.  There are API calls:

object:contentToLocal()  - https://docs.coronalabs.com/api/type/DisplayObject/contentToLocal.html

object:localToContent()  - https://docs.coronalabs.com/api/type/DisplayObject/localToContent.html

That can help convert the numbers back and forth.

Rob

Excellent, thank you once again for your help Rob.

I’m pretty sure widget.newButton() uses “touch”.  There are API calls:

object:contentToLocal()  - https://docs.coronalabs.com/api/type/DisplayObject/contentToLocal.html

object:localToContent()  - https://docs.coronalabs.com/api/type/DisplayObject/localToContent.html

That can help convert the numbers back and forth.

Rob

Excellent, thank you once again for your help Rob.