Change mouse capture target container -> content
To prevent hover activity of scrollbars in Firefox
This commit is contained in:
parent
9eef8dfb9e
commit
12a2464756
1 changed files with 4 additions and 4 deletions
|
|
@ -118,8 +118,8 @@ function DefaultHandlers(mouseHandler) {
|
|||
editor.selection.clearSelection();
|
||||
}
|
||||
}.bind(this), 0);
|
||||
if (editor.container.setCapture) {
|
||||
editor.container.setCapture();
|
||||
if (editor.renderer.content.setCapture) {
|
||||
editor.renderer.content.setCapture();
|
||||
}
|
||||
editor.setStyle("ace_selecting");
|
||||
this.setState("select");
|
||||
|
|
@ -185,8 +185,8 @@ function DefaultHandlers(mouseHandler) {
|
|||
this.selectByWordsEnd =
|
||||
this.selectByLinesEnd = function() {
|
||||
this.editor.unsetStyle("ace_selecting");
|
||||
if (this.editor.container.releaseCapture) {
|
||||
this.editor.container.releaseCapture();
|
||||
if (this.editor.renderer.content.releaseCapture) {
|
||||
this.editor.renderer.content.releaseCapture();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue