Pinch Zoom in Android with Phonegap and jQUERY Mobile

前端 未结 3 1984
伪装坚强ぢ
伪装坚强ぢ 2021-02-08 03:21

I have been having difficult getting pinch zoom to work in the webapp I am creating with Phonegap. Currently, I am loading information into a p tag view a remote script, but the

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-08 03:48

    I realize this post is old, but here's to anyone else googling their way into the post:

    Horizontal zoom is actually not available for any content except within the body - for both iOS and and Android to my knowledge. Try creating a new app with a div and try to make overflow:auto give you anything. There's ScrollView being implemented into jQuery Mobile, and there's iScroll. Neither works well if u want form elements to be within the scrollable area.

    As to zooming out farther than the actual content, I don't think it's unreasonable it actually locks you in. There's nothing outside the body which can be showed, imagine how a background color or image would be clipped - not nice at all!

提交回复
热议问题