Commit 360f6aab authored by techird's avatar techird

fix select issue

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