JQueryMobile HTC Android pinch zoom

I have one website with JQueryMobile that works great for iPhone, but with Android, HTC looks very weird when scaling. The same thing happens on any of the demo pages of the JQueryMobile site, almost half of the screen goes blank, completely breaking the site.

Is there a way to solve this, or at least disable zoom scaling for HTC Android browsers?

0
source share
3 answers

The problem you are facing is most likely caused by a non-standard Android browser. You cannot use the viewport meta tag to prevent zoom scaling. In addition, scaling forces me to recalculate the layout (page sizes changed), which, I believe, causes problems. Unfortunately, it does not seem to be a solution to this problem, but this only applies to HTC phones.

+1
source

Try using the viewport meta tag.

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
0
source

: jQueryMobile . jQueryMobile - ​​ , - , , , ; , . , , . , jQueryMobile.

In addition, you should be aware that Android is generally worse at supporting fantasy animation and than iPhoneOS. Yes, he can do the same things, but not so smoothly, and there are a lot of strange breaks / errors in the position of the page and a lot of things in the animation.

-2
source

Source: https://habr.com/ru/post/1782944/


All Articles