Simplify trackball motion computation

latest commit b9f2d33824
Daniel Elstner authored