fix mouse hit area to work with the horizontal layout