From 2fd610075ec29b4b497fa478e5b9d021c7414a3c Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Aug 29 2019 11:42:45 +0000 Subject: templates/file: disable smooth scrolling on initial highlight & scroll process --- diff --git a/pagure/templates/file.html b/pagure/templates/file.html index 45ace13..585d0ae 100644 --- a/pagure/templates/file.html +++ b/pagure/templates/file.html @@ -282,7 +282,7 @@ No content found in this repository $('#_' + 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); } });