fix #956 Double tap on trackpad doesn't select word
This commit is contained in:
parent
01b7c4a866
commit
dbab5f9210
1 changed files with 3 additions and 6 deletions
|
|
@ -113,6 +113,7 @@ var MouseHandler = function(editor) {
|
|||
|
||||
var onCaptureEnd = function(e) {
|
||||
clearInterval(timerId);
|
||||
onCaptureInterval();
|
||||
self[self.state + "End"] && self[self.state + "End"](e);
|
||||
self.$clickSelection = null;
|
||||
if (renderer.$keepTextAreaAtCursor == null) {
|
||||
|
|
@ -124,14 +125,10 @@ var MouseHandler = function(editor) {
|
|||
|
||||
var onCaptureInterval = function() {
|
||||
self[self.state] && self[self.state]();
|
||||
}
|
||||
};
|
||||
|
||||
if (useragent.isOldIE && ev.domEvent.type == "dblclick") {
|
||||
setTimeout(function() {
|
||||
onCaptureInterval();
|
||||
onCaptureEnd(ev.domEvent);
|
||||
});
|
||||
return;
|
||||
return setTimeout(function() {onCaptureEnd(ev.domEvent);});
|
||||
}
|
||||
|
||||
event.capture(this.editor.container, onMouseMove, onCaptureEnd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue