Skip to content

Commit

Permalink
Reduce the debounce delay when using the new backend.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 664939440
  • Loading branch information
Profiler Team authored and copybara-github committed Aug 19, 2024
1 parent 200109a commit dec8e11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -1665,8 +1665,7 @@
*/
_listenForViewportChanges: function() {
const _trackViewChanged = this._trackViewChanged.bind(this);
const _debouncedOnViewportChanged = tf_component_traceviewer.debounce(
this._onViewportChanged.bind(this), this._useNewBackend ? 100 : 500);
const _debouncedOnViewportChanged = tf_component_traceviewer.debounce(this._onViewportChanged.bind(this));
const superOnViewportChanged_ = this._traceViewer.onViewportChanged_.bind(this._traceViewer);
let prevTrackView = this._traceViewer.trackView;
this._traceViewer.onViewportChanged_ = (...args) => {
Expand Down

0 comments on commit dec8e11

Please sign in to comment.