How to prevent Android Chrome magnifier (link preview) when user clicks on links that are close to each other?

爱⌒轻易说出口 提交于 2019-12-01 04:15:27

问题


I know this question has been asked before. But none of the answers are applicable/acceptable to/for my situation. I am desiging a non-responsive e-commerce website so completely disabling zooming by setting this meta tag:

<meta name='viewport' content='user-scalable=no'/>

is not an option. But my client is insisting that this effect:

absolutely has to go. I have been trying to detect touchstart/touchend events and taps so that I can somehow add the meta tag shown above when the user taps and remove it when the user's touchend has fired so that the pinch and double tap zoom is still available. No success yet.

Also I cannot increase the size of the buttons, font etc - UI design changes are not acceptable.

Can anyone provide any ideas of how to tackle this with CSS/JavaScript/jQuery ?

来源:https://stackoverflow.com/questions/41143080/how-to-prevent-android-chrome-magnifier-link-preview-when-user-clicks-on-links

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!