8
0
Просмотр исходного кода

Reduced throttle factor of ui#update event.

Oskar Wróbel 7 лет назад
Родитель
Сommit
2b8242c5b6
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/ckeditor5-core/src/editor/editorui.js

+ 2 - 2
packages/ckeditor5-core/src/editor/editorui.js

@@ -67,14 +67,14 @@ export default class EditorUI {
 		 * @protected
 		 * @type {Function}
 		 */
-		this._throttledUpdate = throttle( () => this.fire( 'update' ), 200 );
+		this._throttledUpdate = throttle( () => this.fire( 'update' ), 50 );
 
 		// Informs UI components that should be refreshed after layout change.
 		this.listenTo( editor.editing.view.document, 'layoutChanged', () => this.update() );
 	}
 
 	/**
-	 * Triggers the UI update.
+	 * Fires the UI update.
 	 */
 	update() {
 		this._throttledUpdate();