fixed scroll issue of thesis
This commit is contained in:
parent
35cebcf5be
commit
d60e544e0e
2
static/js/d3_map.js
vendored
2
static/js/d3_map.js
vendored
@ -146,7 +146,7 @@ d3.json("/static/js/group1.json", function(error, json) {
|
|||||||
$("#bio" + name).fadeIn()
|
$("#bio" + name).fadeIn()
|
||||||
var dada = document.getElementById("text" + name);
|
var dada = document.getElementById("text" + name);
|
||||||
dada.className += " active";
|
dada.className += " active";
|
||||||
dada.scrollIntoView();
|
dada.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' });
|
||||||
};
|
};
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user