Tracking correct position of mouse or tap click event, even if resizing the screen