Переглянути джерело

Reduced throttle factor of ui#update event.

Oskar Wróbel 7 роки тому
батько
коміт
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();