Simple jQuery drag event
The semicolons after the closing braces are really unnecessary, and the indentation is a bit off here:


        if (yDegrees &lt; maxRotation) {
            yDegrees = maxRotation;
        };
        if (yDegrees &gt; 0) {
            yDegrees = 0;
            };



It would be better this way:

        if (yDegrees &lt; maxRotation) {
            yDegrees = maxRotation;
        }
        if (yDegrees &gt; 0) {
            yDegrees = 0;
        }


This could be written more compactly:


yDegrees = yDegrees + (((originX - event.pageX) / slidingLength) * maxRotation);



Like this:

yDegrees += (originX - event.pageX) / slidingLength * maxRotation;


That is, using += and removing unnecessary parentheses.