Add tolerance area for mouseover zoom

Just some simple changes. You should check if all cases are considered.