fix various event coordinate system problems with button events on the rulers