公众号中有一个分享给他人的二维码页面,长按时不像其他地方的二维码一样能够弹出微信的菜单,请问一下有相关经验的前辈,这是什么原因?
是不是ionic本身禁止在页面上长按来进行选择复制等操作,所以在图片上面长按时也无法触发微信的相应行为?
知乎上有个同样的问题:http://www.zhihu.com/question/28150871
但是没有人回答T-T
The master in the team solved it: Add an attribute to the img element of the QR code: data-tap-disabled: trueIonic official document explains this attribute: http://ionicframework.com/docs/api/page/tap/
data-tap-disabled: true
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!
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!