mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
Don't update editor component if we know we are not visible
This commit is contained in:
committed by
Antonio Scandurra
parent
95c8950004
commit
2c6490c2e0
@@ -166,6 +166,8 @@ class TextEditorComponent {
|
||||
}
|
||||
|
||||
updateSync (useScheduler = false) {
|
||||
if (!this.visible) return
|
||||
|
||||
this.updateScheduled = false
|
||||
if (this.resolveNextUpdatePromise) this.resolveNextUpdatePromise()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user