Open ivanreese opened 8 years ago
I think we're good on this.
Does document.scrollingElement
work? Can we say document.scrollingElement.scrollTop
instead of document.body.scrollTop + document.documentElement.scrollTop
or document.body.scrollTop + document.body.parentNode.scrollTop
?
We'd need to polyfill it for IE, sigh.
We need this for legend.coffee.
It's possible that scrollTop doesn't work in Firefox. We should probably replace all uses of it with
document.body.scrollTop + document.body.parentNode.scrollTop
.