Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Reduced throttle factor of ui#update event.
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarwrobel committed Jun 26, 2018
1 parent 2ffd3db commit b2c08c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/editor/editorui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b2c08c5

Please sign in to comment.