[SOLVED] Return X,Y of LongTap event, and change LongTap duration trigger


Have a Google Map and want to detect a longTap.  There is an event for it, but how do I get the X, Y location of the tap?

Second, is there a way to adjust how long a user needs to hold a tap for LongTap to trigger? I would like to make it longer.





  • You must to post comments
Best Answer

Hi Andrew,


You can get the current X,Y position of the mouse in screen coordinates using the MousePosition property of the Control class and translate this into client coordinates using the PointToClient() method.

The millisecond duration of LongTap can be adjusted through JavaScript using the qx library.  Please see the screenshot attached to see an example of it!

The screenshot shows how to implement both of these features!  Please let me know if you have any more questions.


I hope this helps!



  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.