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: 660181987
  • Loading branch information
Profiler Team authored and copybara-github committed Aug 7, 2024
1 parent 8250913 commit d4d3b70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,8 @@
*/
_listenForViewportChanges: function() {
const _trackViewChanged = this._trackViewChanged.bind(this);
const _debouncedOnViewportChanged = tf_component_traceviewer.debounce(this._onViewportChanged.bind(this));
const _debouncedOnViewportChanged = tf_component_traceviewer.debounce(
this._onViewportChanged.bind(this), this._useNewBackend ? 100 : 500);
const superOnViewportChanged_ = this._traceViewer.onViewportChanged_.bind(this._traceViewer);
let prevTrackView = this._traceViewer.trackView;
this._traceViewer.onViewportChanged_ = (...args) => {
Expand Down

0 comments on commit d4d3b70

Please sign in to comment.