When I made this it drove me for some reason crazy and I decided to remove it. If you want for the comments to automatically scroll to the top, then add this line:
new Fx.Scroll(window).toElement(this.element);
in media\com_comment\js\views\comments-outer.js on line 385
The whole code block there should look like this:
new pagination({
container: '.ccomment-pagination',
total: total,
itemsPerPage: self.config.comments_per_page,
startPage: start,
element: self.element
}).addEvent('changePage', function (e, el) {
var page = el.get('data-id');
self.collection.fetch(true, {start: page});
new Fx.Scroll(window).toElement(this.element);
});
Regards,
Daniel
P.S. I would be really happy to see a subscription on your name