invert y values to correspond more closely to mouse events