fix cursor for folds and dragging
This commit is contained in:
parent
dad1ac4e61
commit
fc47fe8c0a
1 changed files with 14 additions and 8 deletions
|
|
@ -19,6 +19,13 @@
|
|||
box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
/* setting pointer-events: auto; on node under the mouse, which changes during scroll,
|
||||
will break mouse wheel scrolling in Safari */
|
||||
.ace_content * {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.ace_composition {
|
||||
|
|
@ -110,8 +117,6 @@
|
|||
|
||||
.ace_cursor-layer {
|
||||
z-index: 4;
|
||||
cursor: text;
|
||||
/* setting pointer-events: none; here will break mouse wheel scrolling in Safari */
|
||||
}
|
||||
|
||||
.ace_cursor {
|
||||
|
|
@ -127,11 +132,6 @@
|
|||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ace_marker-layer {
|
||||
cursor: text;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.ace_marker-layer .ace_step {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
|
|
@ -162,8 +162,14 @@
|
|||
|
||||
.ace_line .ace_fold {
|
||||
cursor: pointer;
|
||||
pointer-events: auto;
|
||||
color: darkred;
|
||||
}
|
||||
|
||||
.ace_dragging .ace_marker-layer, .ace_dragging .ace_text-layer {
|
||||
.ace_fold:hover{
|
||||
background: gold!important;
|
||||
}
|
||||
|
||||
.ace_dragging .ace_content {
|
||||
cursor: move;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue