) {
        var loc = windowToCanvas(e),
            angle,
            radius,
            trackingRadius;

        e.preventDefault(); // prevent cursor change

        if (editing) {
            if (polygonRotating) {
                stopRotatingPolygon(loc);
                redraw();
            }

            polygonRotating = getSelectedPolygon(loc);

            if (polygonRotating) {
                drawRotationAnnotations(loc);

                if (!rotatingLockEngaged) {
                    rotati