M
M
Max Developer2018-04-11 14:07:17
css
Max Developer, 2018-04-11 14:07:17

Disable scale ( zoom ) on ios safari, firmware above 10?

on ios devices, the ban on scale through the viewport does not work, help!
put this meta tag

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

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton fon Faust, 2018-04-11
@maximviktorovich777

document.addEventListener('touchmove', function (event) {
  if (event.scale !== 1) { event.preventDefault(); }
}, false);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question