I
I
inhype2020-07-02 13:15:17
Android
inhype, 2020-07-02 13:15:17

How to disable the appearance of dialog boxes in browsers on Android?

In the adaptive version of the product cards of the website https://mixbikini.ru/catalog/swimwear/chain/swimsu... on smartphones, an image zoom function is implemented, which works when the photo is hot. You tap on the photo without removing your finger, the image is enlarged and you can move it, examine the individual parts of the product.

Everything works great on iOS devices. And in all browsers on Android, it’s not particularly possible to move the image due to the appearance of a dialog box that offers to download the image, expand it, make it the device’s wallpaper, etc.

5efdb394940b8176449056.jpeg
It appears when you long press on the image. At the same time, as I said, such a dialog box does not appear on iOS devices, although on some sites the browser may also offer to download a photo when clicked.

How to disable the appearance of dialog boxes on android devices?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2020-07-02
@inhype

pointer-events: none; on the picture

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question