Skip to content

Commit 2543f79

Browse files
committed
Disable pointer-events on cursor divs
So that they don't interfere with clicking and dragging Issue codemirror#2556
1 parent 92e9634 commit 2543f79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/codemirror.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,10 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
297297
visibility: hidden;
298298
}
299299

300-
.CodeMirror-cursor { position: absolute; }
300+
.CodeMirror-cursor {
301+
position: absolute;
302+
pointer-events: none;
303+
}
301304
.CodeMirror-measure pre { position: static; }
302305

303306
div.CodeMirror-cursors {

0 commit comments

Comments
 (0)