Restore scrolling to comments when clicking a bundled notification

Follow-up to ebd37369ce.

Bug: T299813
Change-Id: Idd95f21921a89633f5d85aa993ba07aaab59ff20
This commit is contained in:
Bartosz Dziewoński 2022-01-22 03:48:37 +01:00
parent 8f937eb9da
commit 35d6a0d853

View file

@ -558,7 +558,7 @@ function highlightTargetComment( parser, noScroll ) {
$highlightedTarget.addClass( 'ext-discussiontools-init-targetcomment' );
$highlightedTarget.addClass( 'ext-discussiontools-init-highlight-fadein' );
if ( noScroll ) {
if ( !noScroll ) {
var topmostComment = 0;
for ( var i = 1; i < comments.length; i++ ) {
if ( highlights[ i ].getBoundingClientRect().top < highlights[ topmostComment ].getBoundingClientRect().top ) {