I have a vanilla JS plugin that I need to calculate an element\'s offset from the top of the page. It works like a champ on desktop but for some reason on mobile I\'m gettin