How can I monitor scroll position while scrolling in Safari on iOS?

前端 未结 6 1259
梦毁少年i
梦毁少年i 2021-02-05 03:58

I currently use $(window).bind(\'scroll\', foo); to monitor $(window).scrollTop() and do stuff to create a parallax effect.

In all desktop brow

6条回答
  •  耶瑟儿~
    2021-02-05 04:26

    This could be a bug with jQuery itself: http://bugs.jquery.com/ticket/6446

    That ticket has been open for a while and pertains to iOS 4, but perhaps you should investigate calculating the scroll position with pure javascript.

提交回复
热议问题