The current scroll animation in the provided code snippet has an offset of -140 pixels from the top of the target section. While the intention behind adding the offset might be to account for a fixed header, it introduces an issue where the scrolling behavior becomes inaccurate under certain circumstances.
Proposed Solution:
Adjust the scroll animation offset in the JavaScript code to ensure accurate scrolling and alignment with the fixed header. Ideally, the offset should be equal to the height of the fixed header (if any) to maintain consistency across different devices and screen sizes.
Fixes #722
Replace issue_no with the issue number which is fixed in this PR
[x] Tests have been added or updated to cover the changes
[ ] Documentation has been updated to reflect the changes
[x] Code follows the established coding style guidelines
Description
The current scroll animation in the provided code snippet has an offset of -140 pixels from the top of the target section. While the intention behind adding the offset might be to account for a fixed header, it introduces an issue where the scrolling behavior becomes inaccurate under certain circumstances. Proposed Solution: Adjust the scroll animation offset in the JavaScript code to ensure accurate scrolling and alignment with the fixed header. Ideally, the offset should be equal to the height of the fixed header (if any) to maintain consistency across different devices and screen sizes.
Fixes #722
Replace
issue_no
with the issue number which is fixed in this PR