prepare resize by mouse, mouse pressed and released is checked