I want to move a template object in run-time. I use mouseDragged event with following code on template:
x = event.x
y = event.y
what happens is the template moves (even blinking while moved) in the middle position between the original position and the mouse position randomly, that is not on the current mouse position.
Note: that this behavior is not present if the script is put on a simple drawing object like rectangle.
I even test different setting for object layout relative & anchored but nothing changed.
what is wrong with my code?