mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-07 14:35:26 +02:00
Update table-of-content.js
This commit is contained in:
parent
d0a977152c
commit
4ff756e1d0
1 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ export default class TableOfContent {
|
|||
/**
|
||||
* Define a flag to reduce number of calls to detectSection function
|
||||
*/
|
||||
const delayedDetectSectionFunction = Decorators.throttle((lastKnownScrollPosition) => {
|
||||
const throttledDetectSectionFunction = Decorators.throttle((lastKnownScrollPosition) => {
|
||||
detectSection(lastKnownScrollPosition);
|
||||
}, 200);
|
||||
|
||||
|
@ -135,7 +135,7 @@ export default class TableOfContent {
|
|||
/**
|
||||
* Call section detecting function
|
||||
*/
|
||||
delayedDetectSectionFunction(lastKnownScrollPosition);
|
||||
throttledDetectSectionFunction(lastKnownScrollPosition);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue