Increase overflowchanged timeout to 100ms

This commit is contained in:
Kevin Sawicki
2013-11-04 18:38:08 -08:00
parent 287f1984db
commit d20bff473b

View File

@@ -707,7 +707,7 @@ class Editor extends View
# Listen for overflow events to detect when the editor's width changes
# to update the soft wrap column.
updateWidthInChars = _.debounce((=> @setWidthInChars()), 1)
updateWidthInChars = _.debounce((=> @setWidthInChars()), 100)
@scrollView.on 'overflowchanged', =>
updateWidthInChars() if @[0].classList.contains('soft-wrap')