add right to left case
add resize related event cases