If you go into a world or server, then move your mouse high enough, your mouse cursor will eventually escape the window. This also happens to the bottom.
To reproduce the issue, go into fullscreen on a singleplayer world, and then look up. Your cursor will eventually escape the window.