Commit 360f6aab authored by techird's avatar techird

fix select issue

parent 312afae8
......@@ -34,7 +34,7 @@
<link href="favicon.ico" type="image/x-icon" rel="apple-touch-icon-precomposed">
</head>
<body onselectstart="return false">
<body>
<div id="content-wrapper">
<div id="panel"></div>
......
......@@ -81,6 +81,9 @@ KityMinder.registerModule('Select', function() {
// 应用选中范围
minder.select(selectedNodes, true);
// 清除多余的东西
window.getSelection().removeAllRanges()
},
selectEnd: function(e) {
if (startPosition) {
......@@ -92,6 +95,8 @@ KityMinder.registerModule('Select', function() {
});
marqueeMode = false;
}
// 清除多余的东西
window.getSelection().removeAllRanges()
}
};
})();
......
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