Solution for html elements irregular hitarea.