#4583 templates/file: disable smooth scrolling on initial highlight & scroll process
Merged 4 years ago by pingou. Opened 4 years ago by jlanda.

file modified
+1 -1
@@ -282,7 +282,7 @@ 

        $('#_' + i).parent().parent().addClass(cls);

      }

      setTimeout(function(){

-       $("#_" + lines[0]).get(0).scrollIntoView({behavior: "smooth", block: "start", inline: "nearest"});

+       $("#_" + lines[0]).get(0).scrollIntoView({behavior: "instant", block: "start", inline: "nearest"});

      }, 50);

    }

  });