Skip to content

Commit 20a50b3

Browse files
committed
reduce pause to 1s
1 parent 6174df8 commit 20a50b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dashboard/Data/Browser/DataBrowser.react.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,17 +1761,17 @@ export default class DataBrowser extends React.Component {
17611761
return;
17621762
}
17631763

1764-
// Record when block cleared; wait 2 seconds from the most recent unblock
1764+
// Wait 1 second from the most recent unblock before scrolling
17651765
if (this.autoScrollIsBlocked) {
17661766
this.autoScrollIsBlocked = false;
17671767
this.autoScrollLastUnblockedAt = Date.now();
17681768
}
17691769
if (this.autoScrollLastUnblockedAt) {
17701770
const elapsed = Date.now() - this.autoScrollLastUnblockedAt;
1771-
if (elapsed < 2000) {
1771+
if (elapsed < 1000) {
17721772
this.autoScrollTimeoutId = setTimeout(() => {
17731773
this.performAutoScrollStep();
1774-
}, 2000 - elapsed);
1774+
}, 1000 - elapsed);
17751775
return;
17761776
}
17771777
this.autoScrollLastUnblockedAt = 0;

0 commit comments

Comments
 (0)