小程序canvas繪圖出現延遲
在使用canvas繪製線條時出現嚴重的延遲(bindtouchmove事件繪製軌跡),解決方法是在scroll標籤加入disable-scroll=‘true’
<canvas canvas-id='drawCanvas' bindtouchstart='penstart' bindtouchmove='penMove' disable-scroll='true'>
(無奈:)
在使用canvas繪製線條時出現嚴重的延遲(bindtouchmove事件繪製軌跡),解決方法是在scroll標籤加入disable-scroll=‘true’
<canvas canvas-id='drawCanvas' bindtouchstart='penstart' bindtouchmove='penMove' disable-scroll='true'>
(無奈:)