I want the bones to move less than the amount they dragged.
For example, if I move my mouse while dragging by 50 px, to only move the dragged element by 25px.

`

        function dragged(canvas_1, renderer, target, x, y){
        if (target) {
         x = spine.MathUtils.clamp(x, 0, canvas_1.clientWidth)
         y = spine.MathUtils.clamp(y, 0, canvas_1.clientHeight);
         renderer.camera.screenToWorld(coords.set(x, y, 0), canvas_1.clientWidth, canvas_1.clientHeight);
         if (target.parent !== null) {
            target.parent.worldToLocal(position.set(coords.x, coords.y));
            target.x = position.x;
            target.y = position.y;
         } else {
            target.x = coords.x;
            target.y = coords.y;
         }
        }
      }

`

(position.x * 0.5)
I wrote the code in this way, but it doesn't work properly. How can I make it work slower?

Related Discussions
...

Your code just sets the new position. If you want to move the bone from the old position to the new position, you will need to take into consideration the old position. Eg:

newX = (dragX + oldX) * 0.5;
newY = (dragY + oldY) * 0.5;

    Nate

    Thank you very much for your reply.

    How can I make it move by 0.1?

     newX = (dragX + oldX) * 0.1;
     newY = (dragY + oldY) * 0.1;

    If you do this, the coordinates go backwards and it is impossible to modify, so we ask you again.

    newX = oldX + (dragX - oldX) * 0.1;