Getting scroll with javascript? Mobile (Android 4.0.4 Webkit)

In Samsung S3 with the default browser, all of the listed js and jquery attributes do not provide

$('html').scrollTop()

window.pageYOffset

document.documentElement.scrollTop

document.body.scrollTop

do not provide scroll and returns 0 . I have not been able to test many phones yet, but I think this problem may occur on other Android phones as well. At least Samsung.

The second problem occurred after installing Chrome , it took the position correctly, but this time Chrome does not give the expected feedback to the touchmove event . Just throws it once when touched. Thus, all of the events listed below

touch

touchend

touchmove

touchstart 

, . . .

. :

http://manifakture.com/clients/zete

+5

All Articles