fix event position to be not in page coords but in viewport coords