开发者

Detecting swipe movements to go to another web page on an ipad web app

I'm currently trying to set up a开发者_如何学Gon iPad web app. I have my home page but want the user to swipe left and be taken to the about page. I have found a way of detecting movement from padilicious.com but don't know how to make the swipe change the page.


Given you use the movement detection from padilicious:

if ( swipeDirection == 'left' ) {
    window.location.href = 'about.html';
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜