handle panstart event.