Currently, trackball rotation sequentially applies rotation across x axis and y axis, which produces weird results when mouse pointer is moving diagonally:
https://gfycat.com/WealthyQuaintBovine
If rotation is combined properly, this problem does not happen:
https://gfycat.com/IndolentZigzagGroundbeetle
This change fixes the problem by using a single axis which is orthogonal and proportional to mouse delta.