Fixed Mouse Click Bug

Fixed issue where if the left or right mouse button was held down and
dragged out of the screen through the bottom, an
ArrayIndexOutOfBoundsException would occur.