fix: Horizontal scrollbar breaks selection
This commit is contained in:
parent
623f6823a4
commit
06e21af2f4
2 changed files with 3 additions and 4 deletions
|
|
@ -29,20 +29,19 @@
|
|||
}
|
||||
|
||||
.layer {
|
||||
z-index: 0;
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.text-layer {
|
||||
z-index: 2;
|
||||
font-family: Monaco, "Courier New", monospace;
|
||||
cursor: text;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.cursor-layer {
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.cursor {
|
||||
|
|
@ -55,7 +54,6 @@
|
|||
}
|
||||
|
||||
.marker-layer {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.marker-layer .selection {
|
||||
|
|
|
|||
|
|
@ -62,7 +62,8 @@ ace.VirtualRenderer = function(container) {
|
|||
};
|
||||
|
||||
this.getMouseEventTarget = function() {
|
||||
return this.scroller;
|
||||
// return top most layer
|
||||
return this.cursorLayer.element;
|
||||
};
|
||||
|
||||
this.getFirstVisibleRow = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue