mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 08:23:52 +00:00
Restore scrolling to comments when clicking a bundled notification
Follow-up to ebd37369ce
.
Bug: T299813
Change-Id: Idd95f21921a89633f5d85aa993ba07aaab59ff20
This commit is contained in:
parent
8f937eb9da
commit
35d6a0d853
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue