Fixed bug that occured when I dragged a window and a event.movment X or Y was undefined instead of 0. This occured in Chrome.