Move the popup position for avoiding displaying it over the mouse