微信公开课
如何看待微信公开课小程序热门讨论「小程序TextArea间歇性无法触发ontouchstart,move,end方法」
摘要:小程序TextArea间歇性无法触发ontouchstart,move,end方法
展开:监听了上面三个方法,但是长按并滑动时有时不会触发。我在textarea外面加了一层加了Padding容器,然后长按住容器padding才能触发求解决办法。wxml文件代码:viewclasspiccontainerstylebackgroundimage:url({{item.picPath}});textareaclasstextidinputtypetextvalue{{text}}stylemargintop:{{y}}px;marginleft:{{x}}px;width:{{textWidth}}px;height:40px;bindinputonTextInputbindbluronBlurbindfocusonFocusbindtouchstartstartpbindtouchmovemovepbindtouchendendpfocus{{focus}}maxlength{{maxlength}}autoheight//viewwxss文件:.piccontainer{width:750rpx;height:750rpx;padding:10px;border:1rpxsolid;boxsizing:borderbox;backgroundrepeat:norepeat;backgroundsize:cover;}textarea{padding:0;textalign:center;}.text{border:4rpxsolid45c01a;textalign:center;display:inlineblock;fontsize:40px;fontweight:normal;}了解更多
方法1:微信扫描微信公开课小程序码即可订阅热门讨论「小程序TextArea间歇性无法触发ontouchstart,move,end方法」
方法2:微信搜索微信公开课小程序名称进入,即可订阅热门讨论「小程序TextArea间歇性无法触发ontouchstart,move,end方法」
方法3:微信网页访问即速商店,长按识别微信公开课小程序码即可订阅热门讨论「小程序TextArea间歇性无法触发ontouchstart,move,end方法」
微信公开课小程序热门讨论「小程序TextArea间歇性无法触发ontouchstart,move,end方法」由微信公开课原创摘录于微信小程序商店shop.jisuapp.cn,转载请注明出处。
微信公开课热门讨论「小程序TextArea间歇性无法触发ontouchstart,move,end方法」由微信公开课开发者向微信用户提供,并对本服务内容、数据资料及其运营行为等真实性、合法性及有效性承担全部责任。