-
Improvement
-
Resolution: Fixed
-
Minor
-
5.0
-
MOODLE_500_STABLE
-
MOODLE_500_STABLE
-
MDL-83673-main -
-
-
-
2
-
HQ 2024 Sprint I4.2 Moppies
The course page has a scroll spy to highlight the current element in the course index.
The logic is implemented in course/format/amd/src/local/content.js
However, the module adds this._scrollHandler directly means the scroll callback is called several times when the user scrolls. Instead, it should wrap the function using the core/utils throttle function to prevent unnecessary calls and accelerate the page.
Also, thanks to MDL-83658 noticed that the page item is updated on every scroll change, even when the value is unchanged. This issue should also update the state only when the page item changes. This is obvious using the reactive debug panel log.
- is blocked by
-
MDL-83658 The reactive debug panel does not log a transaction, if the events fired are exactly the same as the previous ones
-
- Closed
-