最近寫微信小程序做了一個評論的模態(tài)框組件,發(fā)現頁面textarea 用catchtouchmove="true" 禁止?jié)L動安卓機可以,但是蘋果的不行,最后定位在textarea 這個標簽能滾動的問題
解決辦法:
<textarea catchtouchmove="preventTouchMove"
fixed="true" value='{{comment_txt}}'
auto-height placeholder="評論一下..." />
添加 fixed="true" 就不會滾動了