M
M
Maxim Zolotoy2018-02-11 21:37:48
css
Maxim Zolotoy, 2018-02-11 21:37:48

Why does mobile safari zoom in on some elements when tapping?

I have a slider that I made - and it has a wide div on the sides on which if you click on it, the next photo pops up. These divs go to the edges of the screen. The problem is that when you press your finger on them from a mobile phone in safari, sometimes they behave normally, and sometimes safari takes and scales up focusing on this button. Who knows how to get rid of this? this is terribly annoying.
On the screen, I circled the button element in yellow completely so that it would be clear.
5a808d719a22d898359320.jpeg
and this is how he approaches sometimes
5a808d7724897694767495.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tyzberd, 2018-02-12
@spacenear

try

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question