Click and drag the ball, and release to throw it. The faster you drag the ball, the faster it moves. Best in full screen mode.
The ball will stick to the edge if you move the mouse past the edge before releasing it.