Attempt to fix bug with rotation direction being the opposite of intended direction, and avoiding taking square root of negative number by defining unit sphere to be at radius of largest of x,y coordinates of current or previous pointer position.

Haven't been able to test due to elm compiler memory requirement exceeding 4GB.