开发者

Building web pages for mobile devices that allow dragging

开发者 https://www.devze.com 2023-02-08 18:11 出处:网络
I want to provide the mobile user (e.g. iPhone, Android, etc...) of my web page the ability to use a slider (l开发者_StackOverflowike the jQuery slider, for instance).

I want to provide the mobile user (e.g. iPhone, Android, etc...) of my web page the ability to use a slider (l开发者_StackOverflowike the jQuery slider, for instance).

I cooked up an example. If you use it in Safari on the iPhone, when you try to drag the slider, it thinks you are dragging the entire page, so that does not work. On the Android, the slider just simply doesn't move, though both devices support simply clicking on the slider.

So is there a way to build web pages that support dragging, like I want to?


Checkout the jquery mobile library. Specifically this slider demo

0

精彩评论

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