小程序canvas繪圖延遲

小程序canvas繪圖出現延遲

在使用canvas繪製線條時出現嚴重的延遲(bindtouchmove事件繪製軌跡),解決方法是在scroll標籤加入disable-scroll=‘true’

  <canvas canvas-id='drawCanvas' bindtouchstart='penstart' bindtouchmove='penMove' disable-scroll='true'>

(無奈:)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章