Description
While researching a very troublesome issue, I discovered that scrollTop() does not always return an Integer.
We were unable to replicate the issue, but believe it comes from some combination of the Articulate HTML5 viewer and some browser, or possibly from a PDF viewer embedded in an iFrame in an unnamed browser.
What we did see is that we had hundreds of errors where a value being posted directly to our server from the scrollTop() method that expected to receive an int value was receiving a float instead. We were able to nail down the issue by substituting a float for the scrollTop() value and seeing the exact same behavior in our server side code. When we replaced the scrollTop() value with Math.round(scrollTop value) the issue went away.
It is possible that the bug is actually in scrollTop(), not in the docs.
We are using jQuery.min, version 1.11.0, and did not see this error before we upgraded to jQuery 1.11.