开发者

Scrolling pages with multiple scroll bars in mobile Safari

开发者 https://www.devze.com 2023-03-29 03:10 出处:网络
I\'ve a page, where in I\'ve multiple scroll bars insides. When I access it from mobile safari, I\'m not able to scroll through the <div> s. Is it the default behavior? I know that it is possibl

I've a page, where in I've multiple scroll bars inside s. When I access it from mobile safari, I'm not able to scroll through the <div> s. Is it the default behavior? I know that it is possible to fix it (us开发者_C百科ing Dojo/jQuery). But I just wanted to ensure that this is how it works by default.

Regards, Jim


Yes, this is how it works by default. You'll need to use ontouchstart ontouchend and ontouchmove to simulate scrolling a container when accessing it on an iPhone.

Here's an article on it: http://www.sitepen.com/blog/2008/07/10/touching-and-gesturing-on-the-iphone/

0

精彩评论

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