Wrap the pointer when the edge of the window is reached
Merge pointer warping in i_drag from Rob Pilling
Applied code style on merged changes