Mazatec
Mazatec

Reputation: 11649

iOS Safari - disable zoom

Im trying to disable a feature on mobile safari, but not really sure how to describe it.

I am adding in a Jquery slider which supports the swipeleft() and swiperight() touch events.

As such I want to disable the feature whereby when you swipe to the edge of a page, it shows the grey 'apple linen background' behind the site.

This is interfering with the user experience and I want to fix my site in the center, so the user cannot pull it around within the 'browser space'

Can anyone help?

Upvotes: 5

Views: 2558

Answers (1)

simo
simo

Reputation: 15508

Put this inside your head tag:

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

Upvotes: 4

Related Questions