We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在手机浏览器上DEBUG发现,切换工具之后,canvas.js中currentTool指向的还是currentToolContainer初始化时的tool引用,原因是在正常的非移动版本中(检测的是mouseenter事件),有如下一段代码:
$document.delegate('#canvas-mouse', 'mouseenter', function(e){ mouseCanvas.clear(); //更新当前工具 currentTool = global.painter.tool.currentToolContainer.getTool(); });
而移动版本监听touch事件时没有这段,在touchstart事件处理器末尾加入如下代码: currentTool = global.painter.tool.currentToolContainer.getTool(); 之后在手机浏览器上可以正常切换工具了。
currentTool = global.painter.tool.currentToolContainer.getTool();
The text was updated successfully, but these errors were encountered:
有兴趣提个pr吗
Sorry, something went wrong.
No branches or pull requests
在手机浏览器上DEBUG发现,切换工具之后,canvas.js中currentTool指向的还是currentToolContainer初始化时的tool引用,原因是在正常的非移动版本中(检测的是mouseenter事件),有如下一段代码:
而移动版本监听touch事件时没有这段,在touchstart事件处理器末尾加入如下代码:
currentTool = global.painter.tool.currentToolContainer.getTool();
之后在手机浏览器上可以正常切换工具了。
The text was updated successfully, but these errors were encountered: