        break;
            }
        });

        document.addEventListener("mousemove", function (e) {
            movementX = e.movementX;
            movementY = e.movementY;

            if(click_counter === 1) {
                if(!screenX_init) {
                    screenX_init = screenX_last = e.screenX;
                    screenY_init = screenY_last = e.screenY;
                    movementX_sum = 0;
                    movementY_sum = 0;
                }
                else {
                  