mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-23 06:09:21 +01:00
Reduce buffer time between page visibilities
This commit is contained in:
parent
bca205182e
commit
b027967168
1 changed files with 2 additions and 1 deletions
|
@ -216,7 +216,8 @@ function Notifications({ columnMode }) {
|
||||||
let unsub;
|
let unsub;
|
||||||
if (visible) {
|
if (visible) {
|
||||||
const timeDiff = Date.now() - lastHiddenTime.current;
|
const timeDiff = Date.now() - lastHiddenTime.current;
|
||||||
if (!lastHiddenTime.current || timeDiff > 1000 * 60) {
|
if (!lastHiddenTime.current || timeDiff > 1000 * 3) {
|
||||||
|
// 3 seconds
|
||||||
loadUpdates({
|
loadUpdates({
|
||||||
disableIdleCheck: true,
|
disableIdleCheck: true,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue