I am using a window of fixed position with horizontal and vertical scroll. And using position.top() to find the particular position of the div.
var position = anchor.position().top;
But when zoom is 1 or >1 then it is working totally fine. But when zoom is <1 then there are inconsistencies.
Example Jsfiddle
You have to subtract the position of inner content
var position = anchor.position().top - $('.innercontent').position().top;
Checkout this jsfiddle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With