We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65fd5f3 commit 3154ed1Copy full SHA for 3154ed1
src/components/AxisLinear.useMeasure.ts
@@ -17,8 +17,8 @@ const getElBox = el => {
17
};
18
19
function useIsLooping() {
20
- const callThreshold = 60;
21
- const timeLimit = 1000;
+ const callThreshold = 30;
+ const timeLimit = 500;
22
const now = Date.now();
23
24
const ref = React.useRef([now]);
@@ -32,7 +32,7 @@ function useIsLooping() {
32
}
33
34
const isLooping =
35
- ref.current.length >= callThreshold && now - ref.current[0] < timeLimit;
+ ref.current.length === callThreshold && now - ref.current[0] < timeLimit;
36
37
return isLooping;
38
0 commit comments