Move object to position of hold tap

Peter shared this question 3 years ago
Answered

Hi,


A beginner's question here:


I want to open a context menu in the position where you click.


How do make an object appear in the position of a tap hold gesture? I tried using the move event but I don't know where to get the the position of the last tap from. Is there a constant that retrieves the coordinates of a mobile geesture?


Any help is greatly appreciated!

Comments (2)

photo
1

Hi Peter,


It is not possible for Justinmind to store the exact click position. In this case, you can create hotspots to simulate areas of clicking and add an event related to it, so you can have different contextual menus hidden and, when clicking on an area, the related one will be shown.


Best,


Lidia

photo
1

Okay. Thanks for the quick info!