From d60e544e0e95faeca3c1256949e49e184df3906f Mon Sep 17 00:00:00 2001 From: nglk Date: Mon, 1 Mar 2021 14:13:00 +0100 Subject: [PATCH] fixed scroll issue of thesis --- static/js/d3_map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/d3_map.js b/static/js/d3_map.js index 658b51c..0f8e103 100644 --- a/static/js/d3_map.js +++ b/static/js/d3_map.js @@ -146,7 +146,7 @@ d3.json("/static/js/group1.json", function(error, json) { $("#bio" + name).fadeIn() var dada = document.getElementById("text" + name); dada.className += " active"; - dada.scrollIntoView(); + dada.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' }); }; });