Hello, i am trying to drag a plan with the finger and after a lot of tries i got that the pointermove stop working suddenly.
While i am pressing in the plan, the plan not dragging .
Is there anyone can help me please how i can solve this issue?
I am using this code.
const A_png = parent;
parent.on(“pointermove”, (e) => {
var fingerPosition = e.screenPosition; // pointer position: x,y
var parentPosition =A_png.position(); // plane position: x,y,z
parentPosition[0] = fingerPosition[0]; // replace the x
parentPosition[1] = fingerPosition[1]; // replace the y
A_png.position(parentPosition);
});
Thank you.