There is a QR code page in the official account that is shared with others. When long-pressed, the WeChat menu does not pop up like QR codes in other places. I would like to ask those who have relevant experience, what is the reason?
Is it that ionic itself prohibits long pressing on the page to perform operations such as selection and copying, so long pressing on the picture cannot trigger the corresponding behavior of WeChat?
There is a similar question on Zhihu: http://www.zhihu.com/question/28150871
But no one answered T-T
The master in the team solved it:
Add an attribute to the img element of the QR code:
data-tap-disabled: true
Ionic official document explains this attribute: http://ionicframework.com/docs/api/page/tap/
This is called tap hold event in jquery mobile. After searching, it seems to be called on-hold event in ionic. Try it and see if it’s right.
How do you use ionic to generate QR codes? I am encountering such a problem now!