...
大前端

关于小程序上canvas移动卡顿的解决方法

使用canvas做图片裁剪的时候,
偶尔出现卡顿情况,是移动事件向上冒泡导致的,
添加以下代码阻止冒泡行为:

@touchmove.stop.prevent="()=>{}"

<canvas id="canvas" type="2d"  @touchstart="canvasTouch" @touchmove="canvasTouch" @touchend="canvasTouch" @touchmove.stop.prevent="()=>{}"></canvas>
hi3798mv100编译ch341串口驱动 如何在Linux上安装和配置Syncthing,实现文件同步
biu biu biu
js设置对象只读属性的方法 esp8266 esp32 arduino OTA无线远程升级ElegantOTA使用 vscode 开发arduino环境配置 vscode编译arduino调试输出乱码解决方法。 esp8266 airkiss 配网