javascript scroll event for iPhone/iPad ?

Posted by _ck_ on Stack Overflow See other posts from Stack Overflow or by _ck_
Published on 2010-05-19T07:18:28Z Indexed on 2010/05/19 7:20 UTC
Read the original article Hit count: 486

Filed under:
|
|
|
|

I can't seem to capture the scroll event on an iPad. None of these work, what I am doing wrong?

window.onscroll=myFunction;

document.onscroll=myFunction;

window.attachEvent("scroll",myFunction,false);

document.attachEvent("scroll",myFunction,false);

They all work even on Safari 3 on Windows. Ironically, EVERY browser on the PC supports window.onload= if you don't mind clobbering existing events. But no go on iPad.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about iphone