How to capture scroll start event on iPhone/Android

后端 未结 3 1241
我寻月下人不归
我寻月下人不归 2021-01-07 02:22

I\'m using JQuery with a mobile site to reposition the header nav on scroll in the absence of position:fixed support. That works fine, when the user stops scrolling the head

3条回答
  •  别那么骄傲
    2021-01-07 02:51

    You can start with jQuery Touchwipe : it's a plugin which add new events, wipeleft and wiperight.

    It can be easily modified to change horizontal wipes to vertical ones (changing x's to y's) http://plugins.jquery.com/project/Touchwipe-iPhone-iPad-wipe-gesture

    It works on Android, IOS and BBOS.

提交回复
热议问题