微信小程序画布bindtouchstart事件导致整个页面不能滚动
< view class = "signature-container" > < view class = "s-title" >请患者确认签名</ view > < input name = "signatureId" value = "" hidden/> < view class = "signature-board" > < canvas canvas-id = "signature-patient" class = "signature-patient" disable-scroll = "false" bindtouchstart = "signatureTouchStart" bindtouchmove = "signatureTouchMove" bindtouchend = "signatureTouchEnd" ></ canvas > < view wx:if = "{{showSignatureTips}}" class = "s-tips" catchtouchstart = "touchstartSignatureTips" ></ view > < view wx:if = "{{showSignatureControlBtns}}" class = "s-clear" bindtap = "clearSignature" >重签</ view > < view wx:if = "{{showSignatureControlBtns}}" class = "s-save" bindtap = "saveSignature" >{{saveSignatureDesc}}</ view > </ view > </ view > |
页面底部有个画布用来做用户确认签名的,如果在画布上签名或者在画布触发bindtouchstart事件后,整个页面都不能滑动了,但是在pc的微信开发者工具不存在这个问题