diff --git a/README.md b/README.md index 46d6b2d2..8dbc668c 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ const mindMap = new MindMap({ # 微信交流群 -微信添加`wanglinguanfang`拉你入群。根据过往的经验,大部分问题都可以通过文档解决,所以提问前请确保你已经阅读完了所有文档,文档里没有的可在群里提问,不必私聊作者。 +微信添加`wanglinguanfang`拉你入群。根据过往的经验,大部分问题都可以通过查看issue列表或文档解决,所以提问前请确保你已经阅读完了所有文档,文档里没有的可在群里提问,不必私聊作者。 # star @@ -120,6 +120,8 @@ const mindMap = new MindMap({ 开源不易,如果本项目有帮助到你的话,可以考虑请作者喝杯咖啡,你的支持是开发者持续维护的最大动力~ > 推荐使用支付宝,微信获取不到头像。转账请备注【思维导图】。 +> +> 也可以通过购买付费插件来支持我们:[付费插件](https://wanglin2.github.io/mind-map-docs/plugins/about.html)。

diff --git a/simple-mind-map/src/core/render/node/MindMapNode.js b/simple-mind-map/src/core/render/node/MindMapNode.js index 93f08e41..910bb5ee 100644 --- a/simple-mind-map/src/core/render/node/MindMapNode.js +++ b/simple-mind-map/src/core/render/node/MindMapNode.js @@ -630,12 +630,15 @@ class MindMapNode { this.active(e) }) this.group.on('mousedown', e => { - e.preventDefault() const { readonly, enableCtrlKeyNodeSelection, - useLeftKeySelectionRightKeyDrag + useLeftKeySelectionRightKeyDrag, + mousedownEventPreventDefault } = this.mindMap.opt + if (mousedownEventPreventDefault) { + e.preventDefault() + } // 只读模式不需要阻止冒泡 if (!readonly) { if (this.isRoot) { diff --git a/simple-mind-map/src/plugins/Drag.js b/simple-mind-map/src/plugins/Drag.js index a1928f2a..41cfe657 100644 --- a/simple-mind-map/src/plugins/Drag.js +++ b/simple-mind-map/src/plugins/Drag.js @@ -93,7 +93,6 @@ class Drag extends Base { ) { return } - e.preventDefault() this.isMousedown = true // 记录鼠标按下时的节点 this.mousedownNode = node