pointer not move when resizing