Commit 60272950 authored by campaign's avatar campaign

修复光标

parent 74a372ea
......@@ -93,7 +93,7 @@ KityMinder.registerModule( "TextEditModule", function () {
.setRange(range);
sel.setData('relatedNode',node);
mouseDownStatus = true;
lastEvtPosition = e.getPosition();
lastEvtPosition = e.getPosition(this.getRenderContainer());
if(selectionByClick){
sel.setShow();
selectionByClick = false;
......@@ -214,7 +214,7 @@ KityMinder.registerModule( "TextEditModule", function () {
receiver.updateSelectionByMousePosition(offset,dir)
.updateSelectionShow(dir);
lastEvtPosition = e.getPosition();
lastEvtPosition = e.getPosition(this.getRenderContainer());
}
},
......@@ -333,6 +333,10 @@ KityMinder.registerModule( "TextEditModule", function () {
blur:function(){
receiver.clear();
},
'import':function(){
km.setStatus('normal');
receiver.setTextEditStatus(false).clear();
},
'textedit.mousewheel':function(){
receiver.setContainerStyle();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment