Touch coordinates in onclick event lazarus / 43-Android ---------------------------------------------------------------------- tango13 · 2021-05-13 17:18 Hi, I'm trying to get the (x,y) coordinates of a user click on a jdrawview object, but I get huge numbers like x=1118832016 and y=1148645732, so I must definitely be doing something wrong. I am reading the X and Y variables passed to the onClick event. Can anyone please shed some light on this? Thank you very much. ---------------------------------------------------------------------- loaded · 2021-05-14 05:27 Hi, The code below works fine for me. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TAndroidModule1.jDrawingView1TouchDown(Sender: TObject;  countXY: integer; X: array of single; Y: array of single;  flingGesture: TFlingGesture; pinchZoomScaleState: TPinchZoomScaleState;  zoomScale: single);begin  ShowMessage(floattostr(X[0])+','+floattostr(Y[0]));end; ---------------------------------------------------------------------- tango13 · 2021-05-14 12:57 Your code works perfectly and helped me to spot a very silly mistake I made  Thank you very much!