The current scrolling behaviour is not great anyway especially on a long page due to smooth scroll. I’ll add a workaround to Bugzilla to temporarily disable the smooth scrolling when the Home/End key is pressed, like this:
```js
document.querySelector('#bugzilla-body').addEventListener('keydown', event => {
const { target, key, metaKey, ctrlKey } = event;
const accel = event.metaKey || event.ctrlKey;
const to_top = event.key === 'Home' || (event.key === 'ArrowUp' && accel);
const to_bottom = event.key === 'End' || (event.key === 'ArrowDown' && accel);
if (to_top || to_bottom) {
event.preventDefault();
target.style.setProperty('scroll-behavior', 'auto');
target.scrollTop = to_top ? 0 : target.scrollHeight;
target.style.setProperty('scroll-behavior', 'smooth');
}
});
```
This skips the comments and jumps to the top/bottom of the page immediately.
Bug 1563360 Comment 7 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The current scrolling behaviour is not great anyway especially on a long page due to smooth scroll. I’ll add a workaround to Bugzilla to temporarily disable the smooth scrolling when the Home/End key is pressed, like this:
```js
document.querySelector('#bugzilla-body').addEventListener('keydown', event => {
const { target, key, metaKey, ctrlKey } = event;
const accel = metaKey || ctrlKey;
const to_top = key === 'Home' || (key === 'ArrowUp' && accel);
const to_bottom = key === 'End' || (key === 'ArrowDown' && accel);
if (to_top || to_bottom) {
event.preventDefault();
target.style.setProperty('scroll-behavior', 'auto');
target.scrollTop = to_top ? 0 : target.scrollHeight;
target.style.setProperty('scroll-behavior', 'smooth');
}
});
```
This skips the comments and jumps to the top/bottom of the page immediately.