fix: Horizontal scrollbar breaks selection

This commit is contained in:
Fabian Jakobs 2010-04-28 09:29:50 +02:00
commit 06e21af2f4
2 changed files with 3 additions and 4 deletions

View file

@ -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 {

View file

@ -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() {