-1
我看到这个演示https://konvajs.github.io/docs/sandbox/Free_Drawing.html如何在移动设备上使用绘图[Konvajs]
我已经能够绘制成功的网络桌面上,但在移动
不能得出请帮我
我看到这个演示https://konvajs.github.io/docs/sandbox/Free_Drawing.html如何在移动设备上使用绘图[Konvajs]
我已经能够绘制成功的网络桌面上,但在移动
不能得出请帮我
KonvaJs来与mobile events为移动设备提供支持。你所需要做的就是听这些事件。我已将活动更改为touchend
,touchstart
& touchmove
。所以现在它将适用于移动设备。这里是plunkr。
stage.on('contentTouchstart.proto',() =>{});
stage.on('contentTouchmove.proto',() =>{});
stage.on('contentTouchend.proto',() =>{});
注意:如果您想为您都需要设置两个listners支持。
希望它有帮助。