سؤال

I used zurb foundation 4 for my project, it work well but when I try to swipe horizontally with a finger (on mobile device) does this:

ipad view

instead, i want it fixed for the width.

any tips are welcome, thanks in advance

هل كانت مفيدة؟

المحلول

Change the meta tag for your viewport to the following:

<meta name="viewport" content="width=device-width, maximum-scale = 1.0" />

This will fix your issue and consequently disable zoom. Since most native applications don't allow zooming of the entire interface this shouldn't be much of an issue as long as your UI design is targeting the device.

نصائح أخرى

Put this in application layout

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no, minimum-scale=1" />
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top