开发者

Page swipe using touch

开发者 https://www.devze.com 2023-03-25 05:01 出处:网络
I am trying to add page swipe on a JSP page. I have a page which is now scrollable with arrows. For example, if I click or touch the right arrow, a new JSP page gets loaded, similarly the one to the l

I am trying to add page swipe on a JSP page. I have a page which is now scrollable with arrows. For example, if I click or touch the right arrow, a new JSP page gets loaded, similarly the one to the left. But it is annoying to touch only the arrows on mobile devices each time. So I want to make the entire page as swipe. Basically, it should do the same operation as the arrows but by swiping the page. I am using JSP to load t开发者_如何学运维he new page with arrows.

Please let me know if you have any ideas. I am trying to use jqtouch but any thoughts from you is greatly appreciated.


JQuery mobile has some useful handlers for gestures like tap, taphold, swipe, swipeleft, swiperight. New pages can be loaded on these events.

http://jquerymobile.com/demos/1.0b1/#/demos/1.0b1/docs/api/events.html

0

精彩评论

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