edited getPost() function to ensure it reports the correct position for native scrolling