mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Increase overflowchanged timeout to 100ms
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user