Commit a49bff70 authored by techird's avatar techird

fix mouseup outside

parent b193204d
...@@ -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> <body onselectstart="return false">
<div id="content-wrapper"> <div id="content-wrapper">
<div id="panel"></div> <div id="panel"></div>
......
...@@ -98,6 +98,11 @@ KityMinder.registerModule('Select', function() { ...@@ -98,6 +98,11 @@ KityMinder.registerModule('Select', function() {
var lastDownNode = null, lastDownPosition = null; var lastDownNode = null, lastDownPosition = null;
return { return {
'init': function() {
window.addEventListener('mouseup', function() {
marqueeActivator.selectEnd();
});
},
'events': { 'events': {
'normal.mousedown textedit.mousedown inputready.mousedown': function(e) { 'normal.mousedown textedit.mousedown inputready.mousedown': function(e) {
......
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