Bind mouseup and mousemove to the window