           let mousePosition = new spine.Vector3(x, y);
                        canvas.renderer.camera.screenToWorld(mousePosition, canvas.htmlCanvas.clientWidth, canvas.htmlCanvas.clientHeight);

                        if (this.selectedBone.parent != null) {
                            // If the bone to be dragged has a parent, transform the mouse world position to
                            // the parent bone's coordinate system, and set the bone's position accordingly.
                            let p