Don't use config for scrollSensitivity in TextEditorComponent

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Max Brunsfeld
2016-07-27 15:35:56 -07:00
committed by Nathan Sobo
parent 4c03cb39de
commit 63a730253b
3 changed files with 9 additions and 32 deletions

View File

@@ -80,6 +80,7 @@ class TextEditor extends Model
atomicSoftTabs: true
invisibles: null
showLineNumbers: true
scrollSensitivity: 40
Object.defineProperty @prototype, "element",
get: -> @getElement()
@@ -3359,6 +3360,10 @@ class TextEditor extends Model
getScrollPastEnd: -> @scrollPastEnd
setScrollSensitivity: (@scrollSensitivity) ->
getScrollSensitivity: -> @scrollSensitivity
setShowLineNumbers: (showLineNumbers) ->
if showLineNumbers isnt @showLineNumbers
@showLineNumbers = showLineNumbers