hide the cursor with cursor-hidden class rather than element.style

This commit is contained in:
David Y. Ross
2014-05-13 17:38:43 -07:00
parent e3dbd412e1
commit e3302b3f73
2 changed files with 9 additions and 1 deletions

View File

@@ -78,7 +78,11 @@ class CursorView extends View
setVisible: (visible) ->
unless @visible is visible
@visible = visible
@toggle(@visible)
hiddenCursor = 'hidden-cursor'
if visible
@removeClass hiddenCursor
else
@addClass hiddenCursor
stopBlinking: ->
@constructor.stopBlinking(this) if @blinking

View File

@@ -226,6 +226,10 @@
visibility: visible;
}
.cursor.hidden-cursor {
display: none;
}
.editor .hidden-input {
padding: 0;
border: 0;