Hi, the pointer events returns the absolute coordinates of the touch on the screen, since I need the relative coordinates in the event sheet I can use CanvasToLayerX and CanvasToLayerY to convert them.
Pointer event (using mouse as input)
In scripting I cannot find how to get the screen (not the layout) width and height to do the calculations myself or if there is function that already does that.
Right now I use CanvasToLayer calling an event sheet funtion from the script, but I would like to use only js.
If anything is not clear just ask, thanks!